shell-xfixes-cursor_missing_free.patch 746 B

12345678910111213141516171819202122
  1. From 88de26138a8b79d89884ff2eb6471c5a8e3b39ca Mon Sep 17 00:00:00 2001
  2. From: Maxim Ermilov <zaspire@rambler.ru>
  3. Date: Thu, 05 May 2011 10:06:05 +0000
  4. Subject: shell-xfixes-cursor: missing XFree
  5. memory returned by XFixesGetCursorImage should be freed after usage.
  6. https://bugzilla.gnome.org/show_bug.cgi?id=642652
  7. ---
  8. diff --git a/src/shell-xfixes-cursor.c b/src/shell-xfixes-cursor.c
  9. index 14d2b59..334503d 100644
  10. --- a/src/shell-xfixes-cursor.c
  11. +++ b/src/shell-xfixes-cursor.c
  12. @@ -254,6 +254,7 @@ xfixes_cursor_reset_image (ShellXFixesCursor *xfixes_cursor)
  13. xfixes_cursor->cursor_hot_y = cursor_image->yhot;
  14. g_signal_emit (xfixes_cursor, signals[CURSOR_CHANGED], 0);
  15. }
  16. + XFree (cursor_image);
  17. }
  18. static void
  19. --
  20. cgit v0.9