diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-05-15 20:31:31 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-05-17 10:40:23 +0300 |
commit | 634cd87c76f58b5e1383715bafd5614db825c7d1 (patch) | |
tree | 56ed020dce25df5d80c2f5b3530138d2d202820d /gst-libs/gst/uridownloader | |
parent | c40b8a894dc2fd542a6987c07992ca3e5fbb5658 (diff) | |
download | gstreamer-plugins-bad-634cd87c76f58b5e1383715bafd5614db825c7d1.tar.gz |
gst: Clear floating flag in constructor of all GstObject subclasses that are not owned by any parent
https://bugzilla.gnome.org/show_bug.cgi?id=743062
Diffstat (limited to 'gst-libs/gst/uridownloader')
-rw-r--r-- | gst-libs/gst/uridownloader/gsturidownloader.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gst-libs/gst/uridownloader/gsturidownloader.c b/gst-libs/gst/uridownloader/gsturidownloader.c index 47b5e8b05..05169818c 100644 --- a/gst-libs/gst/uridownloader/gsturidownloader.c +++ b/gst-libs/gst/uridownloader/gsturidownloader.c @@ -154,7 +154,12 @@ gst_uri_downloader_finalize (GObject * object) GstUriDownloader * gst_uri_downloader_new (void) { - return g_object_new (GST_TYPE_URI_DOWNLOADER, NULL); + GstUriDownloader *downloader; + + downloader = g_object_new (GST_TYPE_URI_DOWNLOADER, NULL); + gst_object_ref_sink (downloader); + + return downloader; } /** |