diff options
author | Christian Persch <chpe@src.gnome.org> | 2022-09-02 16:36:42 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2022-09-02 16:36:42 +0200 |
commit | bb6c80e6e06400e1720f3fc4a6e115934bbcd128 (patch) | |
tree | e33ff371bf45bcbf618dc356a38697de7d6bfd95 | |
parent | ddf88475329a7f9943f8d1782434396d4137cca6 (diff) | |
download | gnome-terminal-bb6c80e6e06400e1720f3fc4a6e115934bbcd128.tar.gz |
prefs: Use autocleanup more
-rw-r--r-- | src/terminal-prefs-process.cc | 3 |
1 files changed, 1 insertions, 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); } |