mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
manager: Fix leak of FprintDevice reference
When adding a device a reference was leaked.
This commit is contained in:
@ -214,9 +214,11 @@ device_added_cb (FprintManager *manager, FpDevice *device, FpContext *context)
|
|||||||
{
|
{
|
||||||
FprintManagerPrivate *priv = fprint_manager_get_instance_private (manager);
|
FprintManagerPrivate *priv = fprint_manager_get_instance_private (manager);
|
||||||
g_autoptr(FprintDBusObjectSkeleton) object = NULL;
|
g_autoptr(FprintDBusObjectSkeleton) object = NULL;
|
||||||
FprintDevice *rdev = fprint_device_new(device);
|
g_autoptr(FprintDevice) rdev = NULL;
|
||||||
g_autofree gchar *path = NULL;
|
g_autofree gchar *path = NULL;
|
||||||
|
|
||||||
|
rdev = fprint_device_new(device);
|
||||||
|
|
||||||
g_signal_connect (G_OBJECT(rdev), "notify::in-use",
|
g_signal_connect (G_OBJECT(rdev), "notify::in-use",
|
||||||
G_CALLBACK (fprint_manager_in_use_notified), manager);
|
G_CALLBACK (fprint_manager_in_use_notified), manager);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user