[libpanel/gbsneto/no-autofree: 9/12] save-delegate: Drop g_auto* usage
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpanel/gbsneto/no-autofree: 9/12] save-delegate: Drop g_auto* usage
- Date: Mon, 5 Sep 2022 19:56:52 +0000 (UTC)
commit c4afb67739fee027a72787c7235bd37c6ab61391
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Sep 5 16:48:05 2022 -0300
save-delegate: Drop g_auto* usage
src/panel-save-delegate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/panel-save-delegate.c b/src/panel-save-delegate.c
index 60b102f..e42650d 100644
--- a/src/panel-save-delegate.c
+++ b/src/panel-save-delegate.c
@@ -70,7 +70,7 @@ panel_save_delegate_real_save_async (PanelSaveDelegate *self,
GAsyncReadyCallback callback,
gpointer user_data)
{
- g_autoptr(GTask) task = NULL;
+ GTask *task = NULL;
g_assert (PANEL_IS_SAVE_DELEGATE (self));
g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -78,6 +78,7 @@ panel_save_delegate_real_save_async (PanelSaveDelegate *self,
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, panel_save_delegate_real_save_async);
g_signal_emit (self, signals [SAVE], 0, task);
+ g_clear_object (&task);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]