[gnome-terminal] prefs: Use autocleanup more



commit bb6c80e6e06400e1720f3fc4a6e115934bbcd128
Author: Christian Persch <chpe src gnome org>
Date:   Fri Sep 2 16:36:42 2022 +0200

    prefs: Use autocleanup more

 src/terminal-prefs-process.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/terminal-prefs-process.cc b/src/terminal-prefs-process.cc
index 989fe910..e06b17fa 100644
--- a/src/terminal-prefs-process.cc
+++ b/src/terminal-prefs-process.cc
@@ -407,9 +407,8 @@ TerminalPrefsProcess*
 terminal_prefs_process_new_finish(GAsyncResult* result,
                                   GError** error)
 {
-  auto const source = G_ASYNC_INITABLE(g_async_result_get_source_object(result));
+  gs_unref_object auto source = G_ASYNC_INITABLE(g_async_result_get_source_object(result));
   auto const o = g_async_initable_new_finish(source, result, error);
-  g_object_unref(source);
   return reinterpret_cast<TerminalPrefsProcess*>(o);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]