summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte.benjamin@googlemail.com>2019-11-04 17:46:28 +0000
committerBenjamin Otte <otte.benjamin@googlemail.com>2019-11-04 17:46:28 +0000
commit5d07877b35ab1e768e2c67c7c706e0ca564ecbe6 (patch)
tree5dab2a9bce52d4c1c1397a68196528a1178d0878
parent3086715d54ff60aca557e1e93d036c865333b788 (diff)
parente79d585b00b08ff5a5cacfeda7c442c7343f2a7b (diff)
downloadgtk+-5d07877b35ab1e768e2c67c7c706e0ca564ecbe6.tar.gz
Merge branch 'wip/sadiq/fix-leak' into 'master'
selection-output-stream-x11: Fix a memory leak See merge request GNOME/gtk!1149
-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);
}