Fix some memory errors (bug 5904, r=ds).

This commit is contained in:
David Anderson
2013-10-29 18:58:34 -04:00
parent 66dd3f08b1
commit 96d6cf8def
6 changed files with 37 additions and 23 deletions
+1
View File
@@ -186,6 +186,7 @@ static bool get_game_name(char *buffer, size_t maxlength)
if ((str = pGameInfo->GetString("game", NULL)) != NULL)
{
strncopy(buffer, str, maxlength);
pGameInfo->deleteThis();
return true;
}
}