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:
Guido Günther
2025-10-13 08:29:17 +02:00
parent 8f6b8bc6b9
commit e608c83273

View File

@@ -33,7 +33,7 @@ int
main (int argc,
char **argv)
{
GApplication *app;
g_autoptr (GApplication) app = NULL;
int status;
textdomain (GETTEXT_PACKAGE);
@@ -44,7 +44,6 @@ main (int argc,
app = G_APPLICATION (calls_application_new ());
status = g_application_run (app, argc, argv);
g_object_unref (app);
return status;
}