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

odyx pushed a commit to branch debian/master
in repository planetblupi.

commit 883ab7ca1903bc57ff5e03ae360a0cb9fe356621
Author: Mathieu Schroeter <schroe...@epsitec.ch>
Date:   Mon Feb 5 18:22:31 2018 +0100

    Free the renderer only fter the textures in order to prevent double free
    
    The reason is that the renderer tries to free the associated textures.
    It generates assertion errors on macOS.
---
 src/blupi.cxx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/blupi.cxx b/src/blupi.cxx
index 1c83429..b4dc147 100644
--- a/src/blupi.cxx
+++ b/src/blupi.cxx
@@ -1038,14 +1038,15 @@ main (int argc, char * argv[])
       break;
   }
 
+  SDL_RemoveTimer (updateTimer);
+  FinishObjects ();
+
   if (g_renderer)
     SDL_DestroyRenderer (g_renderer);
 
   if (g_window)
     SDL_DestroyWindow (g_window);
 
-  SDL_RemoveTimer (updateTimer);
-  FinishObjects ();
   SDL_Quit ();
 
   if (g_updateThread)

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

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to