[PATCH 1/6] Fix a memory leak by freeing host and port private variables



---
 src/vncdisplay.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index f779a63..dc328ed 100644
--- a/src/vncdisplay.c
+++ b/src/vncdisplay.c
@@ -1621,6 +1621,9 @@ static void vnc_display_finalize (GObject *obj)
 		priv->image = NULL;
 	}
 
+	g_free (priv->host);
+	g_free (priv->port);
+
 	g_slist_free (priv->preferable_auths);
 
 	G_OBJECT_CLASS (vnc_display_parent_class)->finalize (obj);
-- 
1.6.3.3


--=-ZGLsREbMdlUqAwJTGqis
Content-Disposition: attachment; filename*0=0002-Fix-a-memory-leak-by-freeing-the-private-null-cursor.pat; filename*1=ch
Content-Type: text/x-patch; name="0002-Fix-a-memory-leak-by-freeing-the-private-null-cursor.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit



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