[gnome-shell/gnome-3-0] shell-xfixes-cursor: missing XFree
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-0] shell-xfixes-cursor: missing XFree
- Date: Thu, 12 May 2011 18:24:52 +0000 (UTC)
commit 7feef566561693ff03598e57d0b8e3ed2d91275e
Author: Maxim Ermilov <zaspire rambler ru>
Date: Thu May 5 14:06:05 2011 +0400
shell-xfixes-cursor: missing XFree
memory returned by XFixesGetCursorImage should be freed after usage.
https://bugzilla.gnome.org/show_bug.cgi?id=642652
src/shell-xfixes-cursor.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]