[gtk/wip/sadiq/fix-leak] selection-output-stream-x11: Fix a memory leak
- From: Mohammed Sadiq <pksadiq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/sadiq/fix-leak] selection-output-stream-x11: Fix a memory leak
- Date: Sun, 27 Oct 2019 08:34:26 +0000 (UTC)
commit ddac2f282e0a8ca3ac45abe9d8cb88747b2d24f7
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sun Oct 27 13:46:37 2019 +0530
selection-output-stream-x11: Fix a memory leak
gdk/x11/gdkselectionoutputstream-x11.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdk/x11/gdkselectionoutputstream-x11.c b/gdk/x11/gdkselectionoutputstream-x11.c
index 63d1c33d17..cfacb13ac5 100644
--- a/gdk/x11/gdkselectionoutputstream-x11.c
+++ b/gdk/x11/gdkselectionoutputstream-x11.c
@@ -44,7 +44,7 @@ struct _GdkX11SelectionOutputStreamPrivate {
Atom xtarget;
char *property;
Atom xproperty;
- const char *type;
+ char *type;
Atom xtype;
int format;
gulong timestamp;
@@ -564,6 +564,7 @@ gdk_x11_selection_output_stream_finalize (GObject *object)
g_free (priv->selection);
g_free (priv->target);
g_free (priv->property);
+ g_free (priv->type);
G_OBJECT_CLASS (gdk_x11_selection_output_stream_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]