Fixed released of the ref to GtkApp
authorJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 13 Sep 2012 13:21:24 +0000 (13:21 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 13 Sep 2012 13:21:24 +0000 (13:21 +0000)
Removed memory of the url var to make cppcheck happy

src/main.c

index 91b7b1e..80e912e 100644 (file)
@@ -622,11 +622,14 @@ int main(int argc, char **argv)
        /* main loop */
        gtk_main();
 
-       g_object_ref(app);
+       g_object_unref(app);
        cleanup(&ui);
 
        log_debug("Quitting...");
        log_close();
 
+       if (url)
+               free(url);
+
        return 0;
 }