summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-10-13 11:56:03 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-10-14 10:02:50 +0200
commitaa57d9eb70c8738deca46ae32b1886620d6a61f4 (patch)
tree178ab58b895020ab37fe8a6b1f4de9b099935f66
parent0b7dcbfc3b84905290964ed4003c351aa4efcc36 (diff)
downloadgstreamer-plugins-bad-aa57d9eb70c8738deca46ae32b1886620d6a61f4.tar.gz
glimagesink: Don't leak other-context
-rw-r--r--ext/gl/gstglimagesink.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c
index e79d3b6dd..a7162ee58 100644
--- a/ext/gl/gstglimagesink.c
+++ b/ext/gl/gstglimagesink.c
@@ -503,6 +503,11 @@ gst_glimage_sink_stop (GstBaseSink * bsink)
glimage_sink->pool = NULL;
}
+ if (glimage_sink->other_context) {
+ gst_object_unref (glimage_sink->other_context);
+ glimage_sink->other_context = NULL;
+ }
+
return TRUE;
}
@@ -593,6 +598,11 @@ gst_glimage_sink_change_state (GstElement * element, GstStateChange transition)
glimage_sink->context = NULL;
}
+ if (glimage_sink->other_context) {
+ gst_object_unref (glimage_sink->other_context);
+ glimage_sink->other_context = NULL;
+ }
+
if (glimage_sink->display) {
gst_object_unref (glimage_sink->display);
glimage_sink->display = NULL;