diff options
author | Timm Bäder <mail@baedert.org> | 2018-03-06 19:47:18 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-03-06 19:47:18 +0100 |
commit | 49a7bf267b64c6364e420bf2836f34cfa9d1d57f (patch) | |
tree | 528eebd7789b36026cfd9b0d77c856e191b2e9f7 /gdk | |
parent | f5e290517a5d1b1430b3489570d2e0a06a2746c1 (diff) | |
download | gtk+-49a7bf267b64c6364e420bf2836f34cfa9d1d57f.tar.gz |
GdkSelectionOutputStreamX11: Plug a memory leak
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/x11/gdkselectionoutputstream-x11.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdk/x11/gdkselectionoutputstream-x11.c b/gdk/x11/gdkselectionoutputstream-x11.c index 3587b95be7..106c6b780c 100644 --- a/gdk/x11/gdkselectionoutputstream-x11.c +++ b/gdk/x11/gdkselectionoutputstream-x11.c @@ -94,6 +94,12 @@ gdk_x11_pending_selection_notify_new (Window window, } static void +gdk_x11_pending_selection_notify_free (GdkX11PendingSelectionNotify *notify) +{ + g_slice_free (GdkX11PendingSelectionNotify, notify); +} + +static void gdk_x11_pending_selection_notify_require (GdkX11PendingSelectionNotify *notify, guint n_sends) { @@ -145,6 +151,8 @@ gdk_x11_pending_selection_notify_send (GdkX11PendingSelectionNotify *notify, gdk_x11_get_xatom_name_for_display (display, notify->xevent.target), error)); } + + gdk_x11_pending_selection_notify_free (notify); } static gboolean |