]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Fix always erroring with AddSeat
authorRobert Ancell <robert.ancell@canonical.com>
Wed, 17 Aug 2011 02:50:00 +0000 (12:50 +1000)
committerRobert Ancell <robert.ancell@canonical.com>
Wed, 17 Aug 2011 02:50:00 +0000 (12:50 +1000)
utils/dm-tool.c

index 8ad87f774d1d43b8e8f45af04da7683f0f514016..8e71ffb57322fe7b556878d7abe2dbd989ece09a 100644 (file)
@@ -238,6 +238,8 @@ main (int argc, char **argv)
                                          -1,
                                          NULL,
                                          &error);
+        g_variant_builder_unref (properties);
+        if (!result)
         {
             g_printerr ("Unable to add seat: %s\n", error->message);
             return EXIT_FAILURE;