Browse Source

Fix delete/free confusions in EglApp and SdlApp.

legacy
Sam Hocevar sam 13 years ago
parent
commit
586302999b
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/eglapp.cpp
  2. +1
    -1
      src/sdlapp.cpp

+ 1
- 1
src/eglapp.cpp View File

@@ -187,7 +187,7 @@ EglApp::~EglApp()
XCloseDisplay(data->dpy);
#endif

free(data);
delete data;
}

} /* namespace lol */


+ 1
- 1
src/sdlapp.cpp View File

@@ -90,7 +90,7 @@ SdlApp::~SdlApp()
#if defined USE_SDL
SDL_Quit();
#endif
free(data);
delete data;
}

} /* namespace lol */


Loading…
Cancel
Save