summaryrefslogtreecommitdiff
path: root/extra/gnome-shell/shell-xfixes-cursor_missing_free.patch
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-07 22:35:21 +0000
committerroot <root@rshg047.dnsready.net>2011-05-07 22:35:21 +0000
commitfe6dc99352fe2b801d251e55b2b8baa71441908e (patch)
treeb57122dcf7e7901a912aaf1783a7c8b9a4bd1085 /extra/gnome-shell/shell-xfixes-cursor_missing_free.patch
parentb0145a13655cdf02f228f07b376e58a825e28b78 (diff)
Sat May 7 22:35:21 UTC 2011
Diffstat (limited to 'extra/gnome-shell/shell-xfixes-cursor_missing_free.patch')
-rw-r--r--extra/gnome-shell/shell-xfixes-cursor_missing_free.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/extra/gnome-shell/shell-xfixes-cursor_missing_free.patch b/extra/gnome-shell/shell-xfixes-cursor_missing_free.patch
new file mode 100644
index 000000000..6a66c9384
--- /dev/null
+++ b/extra/gnome-shell/shell-xfixes-cursor_missing_free.patch
@@ -0,0 +1,22 @@
+From 88de26138a8b79d89884ff2eb6471c5a8e3b39ca Mon Sep 17 00:00:00 2001
+From: Maxim Ermilov <zaspire@rambler.ru>
+Date: Thu, 05 May 2011 10:06:05 +0000
+Subject: shell-xfixes-cursor: missing XFree
+
+memory returned by XFixesGetCursorImage should be freed after usage.
+https://bugzilla.gnome.org/show_bug.cgi?id=642652
+---
+diff --git a/src/shell-xfixes-cursor.c b/src/shell-xfixes-cursor.c
+index 14d2b59..334503d 100644
+--- a/src/shell-xfixes-cursor.c
++++ b/src/shell-xfixes-cursor.c
+@@ -254,6 +254,7 @@ xfixes_cursor_reset_image (ShellXFixesCursor *xfixes_cursor)
+ xfixes_cursor->cursor_hot_y = cursor_image->yhot;
+ g_signal_emit (xfixes_cursor, signals[CURSOR_CHANGED], 0);
+ }
++ XFree (cursor_image);
+ }
+
+ static void
+--
+cgit v0.9