Skip to content

Commit

Permalink
GameControl::Draw: fixed free/delete mismatch
Browse files Browse the repository at this point in the history
coverity 4321
  • Loading branch information
lynxlynxlynx committed Apr 18, 2013
1 parent 9926608 commit 6356fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemrb/core/GUI/GameControl.cpp
Expand Up @@ -563,7 +563,7 @@ void GameControl::Draw(unsigned short x, unsigned short y)
if (target->GetStat(IE_NOTRACKING)) continue;
DrawArrowMarker(screen, target->Pos, viewport, black);
}
delete monsters;
free(monsters);
} else {
trackerID = 0;
}
Expand Down

0 comments on commit 6356fb7

Please sign in to comment.