[gtk-vnc] Fix a memory leak by freeing a GdkGC private variable



commit ae9972f76e60642967861c32df1bc550f9f2feec
Author: Jonh Wendell <jwendell gnome org>
Date:   Wed Oct 28 19:35:08 2009 -0300

    Fix a memory leak by freeing a GdkGC private variable

 src/vncdisplay.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index d900943..15c80ae 100644
--- a/src/vncdisplay.c
+++ b/src/vncdisplay.c
@@ -1633,6 +1633,11 @@ static void vnc_display_finalize (GObject *obj)
 		priv->null_cursor = NULL;
 	}
 
+	if (priv->gc) {
+		g_object_unref (priv->gc);
+		priv->gc = NULL;
+	}
+
 	g_free (priv->host);
 	g_free (priv->port);
 



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