mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
d3d11window: Fix videoprocessor leak
Clear all objects in dispose function
This commit is contained in:
parent
64a015d51f
commit
c5abdf8a63
1 changed files with 3 additions and 9 deletions
|
@ -268,15 +268,9 @@ gst_d3d11_window_dispose (GObject * object)
|
||||||
gst_d3d11_window_release_resources (self->device, self);
|
gst_d3d11_window_release_resources (self->device, self);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self->converter) {
|
g_clear_pointer (&self->processor, gst_d3d11_video_processor_free);
|
||||||
gst_d3d11_color_converter_free (self->converter);
|
g_clear_pointer (&self->converter, gst_d3d11_color_converter_free);
|
||||||
self->converter = NULL;
|
g_clear_pointer (&self->compositor, gst_d3d11_overlay_compositor_free);
|
||||||
}
|
|
||||||
|
|
||||||
if (self->compositor) {
|
|
||||||
gst_d3d11_overlay_compositor_free (self->compositor);
|
|
||||||
self->compositor = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
gst_clear_buffer (&self->cached_buffer);
|
gst_clear_buffer (&self->cached_buffer);
|
||||||
gst_clear_object (&self->device);
|
gst_clear_object (&self->device);
|
||||||
|
|
Loading…
Reference in a new issue