dataurisrc: fix string leak in property getter
authorTim-Philipp Müller <tim@centricular.com>
Mon, 28 Nov 2016 10:42:46 +0000 (10:42 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 28 Nov 2016 11:19:07 +0000 (11:19 +0000)
plugins/elements/gstdataurisrc.c

index 84ec894..11ed4da 100644 (file)
@@ -160,7 +160,7 @@ gst_data_uri_src_get_property (GObject * object,
 
   switch (prop_id) {
     case PROP_URI:
-      g_value_set_string (value,
+      g_value_take_string (value,
           gst_data_uri_src_get_uri (GST_URI_HANDLER (src)));
       break;
     default: