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 Jun 26, 2014
1 parent d895f7d commit 564c719
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/game.cpp
Expand Up @@ -1620,6 +1620,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 564c719

Please sign in to comment.