diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-12-07 17:20:20 -0500 |
---|---|---|
committer | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2015-12-10 14:38:09 +0000 |
commit | 733ca7effb3c01bb5e9d1b9d4efc1cce5b38a975 (patch) | |
tree | 00a5ef98679c8bb5a202d0259a230418cc30afcf | |
parent | b13ba5f0d8316602e3f2d13ff446c8af7a80e783 (diff) | |
download | clutter-gst-733ca7effb3c01bb5e9d1b9d4efc1cce5b38a975.tar.gz |
auto-video-sink: Don't leak kid on dispose
Currently we leak the kid by not removing it from the
content. Remove the kid sink from the content when removing
it from the pipeline.
https://bugzilla.gnome.org/show_bug.cgi?id=759205
-rwxr-xr-x[-rw-r--r--] | clutter-gst/clutter-gst-auto-video-sink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clutter-gst/clutter-gst-auto-video-sink.c b/clutter-gst/clutter-gst-auto-video-sink.c index 792a832..5c22f3f 100644..100755 --- a/clutter-gst/clutter-gst-auto-video-sink.c +++ b/clutter-gst/clutter-gst-auto-video-sink.c @@ -145,6 +145,11 @@ clutter_gst_auto_video_sink_clear_kid (ClutterGstAutoVideoSink3 *sink) /* Don't lose the SINK flag */ GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_FLAG_SINK); } + + if (sink->content) + { + clutter_gst_content_set_sink (CLUTTER_GST_CONTENT (sink->content), NULL); + } } /* |