ges-launch: unref GApplication properly
Differential Revision: https://phabricator.freedesktop.org/D380
This commit is contained in:
parent
ee2697be46
commit
756bd269e1
@ -74,7 +74,11 @@ main (int argc, gchar ** argv)
|
||||
launcher = ges_launcher_new ();
|
||||
|
||||
ret = g_application_run (G_APPLICATION (launcher), argc, argv);
|
||||
if (ret)
|
||||
return ret;
|
||||
return ges_launcher_get_exit_status (launcher);
|
||||
|
||||
if (!ret)
|
||||
ret = ges_launcher_get_exit_status (launcher);
|
||||
|
||||
g_object_unref (launcher);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user