From: Jean-Philippe Orsini Date: Thu, 13 Sep 2012 13:21:24 +0000 (+0000) Subject: Fixed released of the ref to GtkApp X-Git-Tag: v0.8.0.5~227 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=6c7fe98f9f02f2b88b0a7a8febb0ab76d73f3b5a Fixed released of the ref to GtkApp Removed memory of the url var to make cppcheck happy --- diff --git a/src/main.c b/src/main.c index 91b7b1e..80e912e 100644 --- a/src/main.c +++ b/src/main.c @@ -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; }