d3d11window: Fix videoprocessor leak

Clear all objects in dispose function
This commit is contained in:
Seungha Yang 2020-04-21 15:30:03 +09:00
parent 64a015d51f
commit c5abdf8a63

View file

@ -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);