Skip to content

Commit

Permalink
Fix persistent memory leak in GameSession::get_demo_random_seed()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Aug 13, 2014
1 parent 3c0ed29 commit 368531e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/supertux/game_session.cpp
Expand Up @@ -184,6 +184,8 @@ GameSession::get_demo_random_seed(const std::string& filename)
else
log_info << "Demo file contains no random number" << std::endl;
}
delete test_stream;
test_stream = nullptr;
return 0;
}

Expand Down

0 comments on commit 368531e

Please sign in to comment.