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,
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user