Skip to content

Commit

Permalink
Fix memory leak in wesnothd
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Jul 3, 2014
1 parent 16e9bd6 commit f85f08f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/game.cpp
Expand Up @@ -1400,6 +1400,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 f85f08f

Please sign in to comment.