From fbe0f1c2b139842235446c9a6c6933562ce3dfa2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Sep 2013 17:28:29 +0300 Subject: add init and quit code for SDL_Image and SDL_Mixer. --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index bec85f4c8..68d81eda0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,6 +48,9 @@ #include #endif +#include +#include + #include "debug.h" char *selfName = nullptr; @@ -292,6 +295,8 @@ int main(int argc, char *argv[]) atexit((void(*)()) PHYSFS_deinit); XML::initXML(); + IMG_Init(IMG_INIT_PNG); + Mix_Init(MIX_INIT_OGG); #ifdef WIN32 SetCurrentDirectory(PhysFs::getBaseDir()); @@ -311,6 +316,10 @@ int main(int argc, char *argv[]) } delete client; client = nullptr; + + Mix_Quit(); + IMG_Quit(); + #ifdef DUMP_LEAKED_RESOURCES reportRWops(); #endif -- cgit v1.2.3-70-g09d2