[libpanel] example: remove autoptr usage
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpanel] example: remove autoptr usage
- Date: Tue, 13 Sep 2022 23:09:33 +0000 (UTC)
commit e4581452d567113b9a8dc61ad37bbaabe4916146
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 13 16:09:19 2022 -0700
example: remove autoptr usage
example/example-page.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/example/example-page.c b/example/example-page.c
index 42d6421..d9c216d 100644
--- a/example/example-page.c
+++ b/example/example-page.c
@@ -176,7 +176,7 @@ example_page_class_init (ExamplePageClass *klass)
static void
example_page_init (ExamplePage *self)
{
- g_autoptr(PanelSaveDelegate) delegate = NULL;
+ PanelSaveDelegate *delegate = NULL;
GtkWidget *scroller;
scroller = gtk_scrolled_window_new ();
@@ -238,4 +238,5 @@ example_page_init (ExamplePage *self)
g_object_bind_property (self, "icon", delegate, "icon", G_BINDING_SYNC_CREATE);
panel_save_delegate_set_subtitle (delegate, "~/Documents");
panel_widget_set_save_delegate (PANEL_WIDGET (self), delegate);
+ g_clear_object (&delegate);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]