mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
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:
parent
91def8d4ad
commit
73f8de3305
1 changed files with 4 additions and 3 deletions
|
@ -197,14 +197,15 @@ gst_mf_device_provider_device_enum_completed (GstWinRTDeviceWatcher *
|
||||||
watcher, gpointer user_data);
|
watcher, gpointer user_data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
|
||||||
gst_mf_device_provider_on_device_updated (GstMFDeviceProvider * self);
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_mf_device_provider_class_init (GstMFDeviceProviderClass * klass)
|
gst_mf_device_provider_class_init (GstMFDeviceProviderClass * klass)
|
||||||
{
|
{
|
||||||
|
auto object_class = G_OBJECT_CLASS (klass);
|
||||||
GstDeviceProviderClass *provider_class = GST_DEVICE_PROVIDER_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->probe = GST_DEBUG_FUNCPTR (gst_mf_device_provider_probe);
|
||||||
provider_class->start = GST_DEBUG_FUNCPTR (gst_mf_device_provider_start);
|
provider_class->start = GST_DEBUG_FUNCPTR (gst_mf_device_provider_start);
|
||||||
provider_class->stop = GST_DEBUG_FUNCPTR (gst_mf_device_provider_stop);
|
provider_class->stop = GST_DEBUG_FUNCPTR (gst_mf_device_provider_stop);
|
||||||
|
|
Loading…
Reference in a new issue