mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
glimagesink: Don't leak other-context
This commit is contained in:
parent
9d1df014fd
commit
3b9b30563e
1 changed files with 10 additions and 0 deletions
|
@ -588,6 +588,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;
|
||||
}
|
||||
|
||||
|
@ -679,6 +684,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;
|
||||
|
|
Loading…
Reference in a new issue