[jag] 03/11: Fixed main.cpp

Carlos Donizete Froes coringao-guest at moszumanska.debian.org
Fri Dec 8 22:25:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

coringao-guest pushed a commit to branch master
in repository jag.

commit 74fb2a952ccf098227584b6a4a6468edfac5b383
Author: Carlos Donizete Froes <coringao at riseup.net>
Date:   Fri Dec 8 20:16:04 2017 -0200

    Fixed main.cpp
    
    Signed-off-by: Carlos Donizete Froes <coringao at riseup.net>
---
 src/main.cpp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp
index 3bcb23e..e8b28ef 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -118,14 +118,8 @@ int main(int argc, char *argv[])
     // main widget & startup
     GameWidget w(resourcePath);
 
-    int result = a.exec();
-
-    // deinitialization of SDL
-    Mix_CloseAudio();
-    SDL_Quit();
-
     // deinitialization of DisplayWrapper
     DisplayWrapper::restoreVideoMode();
 
-    return result;
+    return a.exec();
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/jag.git



More information about the Pkg-games-commits mailing list