summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Sadiq <sadiq@sadiqpk.org>2019-10-27 13:46:37 +0530
committerMohammed Sadiq <sadiq@sadiqpk.org>2019-10-27 14:05:46 +0530
commite79d585b00b08ff5a5cacfeda7c442c7343f2a7b (patch)
tree73137d148eb201639d378515fe1e666d5d9b367c
parent1f0310ddff4ca54dd428d2c1249bf9b5b6b8020c (diff)
downloadgtk+-e79d585b00b08ff5a5cacfeda7c442c7343f2a7b.tar.gz
gdkselectionoutputstream-x11: Fix a memory leak
-rw-r--r--gdk/x11/gdkselectionoutputstream-x11.c3
1 files changed, 2 insertions, 1 deletions
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);
}