Blame SOURCES/0038-fp-context-Run-dispose-on-the-usb-context-to-deal-wi.patch

73b847
From e2419698d6c87a5d5a822acf4d5891a464f68317 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:16:07 +0100
73b847
Subject: [PATCH 038/181] fp-context: Run dispose on the usb context to deal
73b847
 with circular refs
73b847
73b847
Ensure that we dispose the USB context before unreffing it, so that it will
73b847
release any reference it has and destroy the internal libusb context.
73b847
---
73b847
 libfprint/fp-context.c | 2 ++
73b847
 1 file changed, 2 insertions(+)
73b847
73b847
diff --git a/libfprint/fp-context.c b/libfprint/fp-context.c
73b847
index 74dda51..eed7847 100644
73b847
--- a/libfprint/fp-context.c
73b847
+++ b/libfprint/fp-context.c
73b847
@@ -186,6 +186,8 @@ fp_context_finalize (GObject *object)
73b847
   g_cancellable_cancel (priv->cancellable);
73b847
   g_clear_object (&priv->cancellable);
73b847
   g_clear_pointer (&priv->drivers, g_array_unref);
73b847
+
73b847
+  g_object_run_dispose (G_OBJECT (priv->usb_ctx));
73b847
   g_clear_object (&priv->usb_ctx);
73b847
 
73b847
   G_OBJECT_CLASS (fp_context_parent_class)->finalize (object);
73b847
-- 
73b847
2.24.1
73b847