Don't leak the GCancellable
authorAlberto Mardegan <alberto.mardegan@canonical.com>
Fri, 18 Jan 2013 12:38:12 +0000 (14:38 +0200)
committerAlberto Mardegan <alberto.mardegan@canonical.com>
Fri, 18 Jan 2013 12:38:12 +0000 (14:38 +0200)
libsignon-glib/signon-identity.c

index 2e0989f..36ae475 100644 (file)
@@ -241,6 +241,7 @@ signon_identity_dispose (GObject *object)
     if (priv->cancellable)
     {
         g_cancellable_cancel (priv->cancellable);
+        g_object_unref (priv->cancellable);
         priv->cancellable = NULL;
     }