ges-launch: unref GApplication properly

Differential Revision: https://phabricator.freedesktop.org/D380
This commit is contained in:
Justin Kim 2016-06-29 00:39:02 +00:00 committed by Thibault Saunier
parent ee2697be46
commit 756bd269e1

View file

@ -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;
}