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:
1 parent
0c867aabbf
commit
0a9229ff3f
4 files changed
+2
-13
No files matched your search
+1
-1
@@ -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