use g_autoptr for GError

This commit is contained in:
fortysixandtwo
2020-12-12 12:57:19 +01:00
parent 9c9169a972
commit 1bb2f80fef
2 changed files with 3 additions and 5 deletions

View File

@@ -135,7 +135,7 @@ static void mm_manager_new_cb(GDBusConnection *connection,
GAsyncResult *res,
struct EG25Manager *manager)
{
GError *error = NULL;
g_autoptr (GError) *error = NULL;
manager->mm_manager = mm_manager_new_finish(res, &error);
if (!manager->mm_manager)