Fix some memory errors (bug 5904, r=ds).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user