Skip to content

Commit

Permalink
AGOS: Use delete instead of free on an C++ object.
Browse files Browse the repository at this point in the history
This fixes some ugly valgrind warnings and some crashes when quitting AGOS
games for me.
  • Loading branch information
Johannes Schickel committed Aug 21, 2011
1 parent d915480 commit 7173dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/agos/agos.cpp
Expand Up @@ -911,7 +911,7 @@ AGOSEngine::~AGOSEngine() {
_window6BackScn->free();
delete _window6BackScn;

free(_midi);
delete _midi;

free(_firstTimeStruct);
free(_pendingDeleteTimeEvent);
Expand Down

0 comments on commit 7173dbf

Please sign in to comment.