Skip to content

Commit

Permalink
Merge pull request #225 from AI0867/wesnothd_memory_leak2
Browse files Browse the repository at this point in the history
Fix memory leak in wesnothd
  • Loading branch information
AI0867 committed Jul 1, 2014
2 parents fdf9b7d + 564c719 commit 34da068
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/game.cpp
Expand Up @@ -1624,6 +1624,7 @@ void game::send_and_record_server_message(const char* message, const network::co
send_server_message(message, 0, doc);
send_data(*doc, exclude, "message");
if (started_) record_data(doc);
else delete doc;
}

void game::send_server_message_to_all(const char* message, network::connection exclude) const
Expand Down

0 comments on commit 34da068

Please sign in to comment.