Blame SOURCES/0037-fp-device-Unref-the-usb-device-on-finalize.patch

73b847
From 36f45003414530868e93c220ea474a3e7e602ca7 Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Tue, 26 Nov 2019 19:07:26 +0100
73b847
Subject: [PATCH 037/181] fp-device: Unref the usb device on finalize
73b847
73b847
Each device adds a ref to the underlying usb device, but it doesn't remove
73b847
the reference on finalization.
73b847
73b847
So clear the object to fix the leak
73b847
---
73b847
 libfprint/fp-device.c | 1 +
73b847
 1 file changed, 1 insertion(+)
73b847
73b847
diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c
73b847
index 13f1b5a..b2190bd 100644
73b847
--- a/libfprint/fp-device.c
73b847
+++ b/libfprint/fp-device.c
73b847
@@ -382,6 +382,7 @@ fp_device_finalize (GObject *object)
73b847
 
73b847
   g_clear_pointer (&priv->device_id, g_free);
73b847
   g_clear_pointer (&priv->device_name, g_free);
73b847
+  g_clear_object (&priv->usb_device);
73b847
 
73b847
   G_OBJECT_CLASS (fp_device_parent_class)->finalize (object);
73b847
 }
73b847
-- 
73b847
2.24.1
73b847