ctl: fix g_variant leak.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Wed, 4 Dec 2013 19:16:12 +0000 (17:16 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Wed, 4 Dec 2013 19:16:12 +0000 (17:16 -0200)
src/bin/lightmediascannerctl.c

index f1b3b7c..2af066e 100644 (file)
@@ -237,8 +237,10 @@ on_properties_changed_check_scan(GDBusProxy *proxy, GVariant *changed, const cha
                     app->ret = EXIT_SUCCESS;
                     g_main_loop_quit(app->loop);
                 }
+                g_variant_unref(value);
                 break;
-            }
+            } else
+                g_variant_unref(value);
         }
         g_variant_iter_free(itr);
     }