[recipes] Avoid a warning on exit
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Avoid a warning on exit
- Date: Tue, 17 Jan 2017 11:42:47 +0000 (UTC)
commit e1fcef94148a30e7185a8b2846e252842eb85bd8
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 17 05:09:08 2017 -0500
Avoid a warning on exit
We run into trouble if modify children from finalize, so just
copy the three lines we really need.
src/gr-list-page.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-list-page.c b/src/gr-list-page.c
index f853e50..a01d3be 100644
--- a/src/gr-list-page.c
+++ b/src/gr-list-page.c
@@ -84,8 +84,9 @@ list_page_finalize (GObject *object)
{
GrListPage *self = GR_LIST_PAGE (object);
- clear_data (self);
-
+ g_clear_object (&self->chef);
+ g_clear_pointer (&self->season, g_free);
+ g_list_free_full (self->recipes, g_object_unref);
g_clear_object (&self->search);
G_OBJECT_CLASS (gr_list_page_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]