mfdevice: Fix memory leak

Release resources on dispose() as intended

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8405>
This commit is contained in:
Seungha Yang 2025-02-04 02:52:51 +09:00 committed by GStreamer Marge Bot
parent 91def8d4ad
commit 73f8de3305

View file

@ -197,14 +197,15 @@ gst_mf_device_provider_device_enum_completed (GstWinRTDeviceWatcher *
watcher, gpointer user_data);
#endif
static void
gst_mf_device_provider_on_device_updated (GstMFDeviceProvider * self);
static void
gst_mf_device_provider_class_init (GstMFDeviceProviderClass * klass)
{
auto object_class = G_OBJECT_CLASS (klass);
GstDeviceProviderClass *provider_class = GST_DEVICE_PROVIDER_CLASS (klass);
object_class->dispose = gst_mf_device_provider_dispose;
object_class->finalize = gst_mf_device_provider_finalize;
provider_class->probe = GST_DEBUG_FUNCPTR (gst_mf_device_provider_probe);
provider_class->start = GST_DEBUG_FUNCPTR (gst_mf_device_provider_start);
provider_class->stop = GST_DEBUG_FUNCPTR (gst_mf_device_provider_stop);