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:
Maarten ter Huurne committed 2011-06-02 18:15:15 +02:00
1 parent 0c867aabbf
commit 0a9229ff3f
4 files changed
+2 -13

No files matched your search

+1 -1
View File
@@ -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) {