mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Surface: Use the destructor as intended.
There is no reason to have an explicit free() method instead of just destructing the Surface object and doing cleanup in the destructor.
This commit is contained in:
@@ -327,7 +327,7 @@ GMenu2X::~GMenu2X() {
|
||||
void GMenu2X::quit() {
|
||||
fflush(NULL);
|
||||
sc.clear();
|
||||
s->free();
|
||||
free(s);
|
||||
SDL_Quit();
|
||||
#ifdef TARGET_GP2X
|
||||
/* if (gp2x_mem!=0) {
|
||||
|
||||
Reference in New Issue
Block a user