[planetblupi] 03/19: Fix renderer memleak

Didier Raboud odyx at moszumanska.debian.org
Fri Dec 8 09:03:54 UTC 2017


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

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

commit cb4dd444b447f3269ce560245ba16bfa512489d7
Author: Mathieu Schroeter <mathieu at schroetersa.ch>
Date:   Sun Nov 26 21:57:04 2017 +0100

    Fix renderer memleak
---
 src/blupi.cxx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/blupi.cxx b/src/blupi.cxx
index f7bf031..980073c 100644
--- a/src/blupi.cxx
+++ b/src/blupi.cxx
@@ -993,6 +993,9 @@ main (int argc, char * argv[])
       break;
   }
 
+  if (g_renderer)
+    SDL_DestroyRenderer (g_renderer);
+
   if (g_window)
     SDL_DestroyWindow (g_window);
 

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



More information about the Pkg-games-commits mailing list