[gimp] app: don't leak the rotate transform matrices when destroying the shell



commit 81e293cb0620a096dc7274480e78d3d1e17003c4
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 21 02:40:41 2013 +0200

    app: don't leak the rotate transform matrices when destroying the shell

 app/display/gimpdisplayshell.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index 3b4f227..f1a771a 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -843,6 +843,12 @@ gimp_display_shell_finalize (GObject *object)
 
   g_object_unref (shell->zoom);
 
+  if (shell->rotate_transform)
+    g_free (shell->rotate_transform);
+
+  if (shell->rotate_untransform)
+    g_free (shell->rotate_untransform);
+
   if (shell->options)
     g_object_unref (shell->options);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]