app: Use automatic cleanup
Signed-off-by: Guido Günther <agx@sigxcpu.org> Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795>
This commit is contained in:
@@ -33,7 +33,7 @@ int
|
|||||||
main (int argc,
|
main (int argc,
|
||||||
char **argv)
|
char **argv)
|
||||||
{
|
{
|
||||||
GApplication *app;
|
g_autoptr (GApplication) app = NULL;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
textdomain (GETTEXT_PACKAGE);
|
textdomain (GETTEXT_PACKAGE);
|
||||||
@@ -44,7 +44,6 @@ main (int argc,
|
|||||||
|
|
||||||
app = G_APPLICATION (calls_application_new ());
|
app = G_APPLICATION (calls_application_new ());
|
||||||
status = g_application_run (app, argc, argv);
|
status = g_application_run (app, argc, argv);
|
||||||
g_object_unref (app);
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user