[gtk-vnc] Fix a memory leak by freeing the remote cursor
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Fix a memory leak by freeing the remote cursor
- Date: Wed, 28 Oct 2009 23:33:15 +0000 (UTC)
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]