From: Mohammed Sadiq Date: Sun, 27 Oct 2019 08:16:37 +0000 (+0530) Subject: gdkselectionoutputstream-x11: Fix a memory leak X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~659^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e79d585b00b08ff5a5cacfeda7c442c7343f2a7b;p=gtk4.git gdkselectionoutputstream-x11: Fix a memory leak --- 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); }