[gtk-vnc] Fix a memory leak by freeing the remote cursor



commit 18e6fcca7100e26d0f30370e9165b82d2917bac3
Author: Jonh Wendell <jwendell gnome org>
Date:   Wed Oct 28 19:56:01 2009 -0300

    Fix a memory leak by freeing the remote cursor

 src/vncdisplay.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index 15c80ae..0b63220 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->remote_cursor) {
+		gdk_cursor_unref(priv->remote_cursor);
+		priv->remote_cursor = NULL;
+	}
+
 	if (priv->gc) {
 		g_object_unref (priv->gc);
 		priv->gc = NULL;



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