Changeset 3313
- Timestamp:
- 01/29/08 17:21:37
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/libtinymail/tny-simple-list-iterator.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-gtk-account-list-model-iterator.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-gtk-attach-list-model-iterator.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-gtk-folder-store-tree-model-iterator.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-gtk-header-list-iterator.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r3312 r3313 1 2008-01-29 Philip Van Hoof <pvanhoof@gnome.org> 2 3 * Fixed reference counting for all TnyIterator implementations 4 1 5 2008-01-28 Philip Van Hoof <pvanhoof@gnome.org> 2 6 trunk/libtinymail/tny-simple-list-iterator.c
r3312 r3313 36 36 TnySimpleListPriv *lpriv; 37 37 38 self->model = model; 38 if (self->model) 39 g_object_unref (self->model); 40 41 self->model = g_object_ref (model); 39 42 40 43 lpriv = TNY_SIMPLE_LIST_GET_PRIVATE (self->model); … … 73 76 tny_simple_list_iterator_finalize (GObject *object) 74 77 { 78 TnySimpleListIterator *self = (TnySimpleListIterator *) object; 79 80 if (self->model) 81 g_object_unref (self->model); 82 75 83 (*parent_class->finalize) (object); 76 84 trunk/libtinymailui-gtk/tny-gtk-account-list-model-iterator.c
r3312 r3313 32 32 _tny_gtk_account_list_model_iterator_set_model (TnyGtkAccountListModelIterator *self, TnyGtkAccountListModel *model) 33 33 { 34 self->model = model; 34 if (self->model) 35 g_object_unref (self->model); 36 37 self->model = g_object_ref (model); 35 38 self->current = model->first; 36 39 … … 64 67 tny_gtk_account_list_model_iterator_finalize (GObject *object) 65 68 { 69 TnyGtkAccountListModelIterator *self = (TnyGtkAccountListModelIterator *) object; 70 71 if (self->model) 72 g_object_unref (self->model); 73 66 74 (*parent_class->finalize) (object); 67 75 trunk/libtinymailui-gtk/tny-gtk-attach-list-model-iterator.c
r3312 r3313 33 33 _tny_gtk_attach_list_model_iterator_set_model (TnyGtkAttachListModelIterator *self, TnyGtkAttachListModel *model) 34 34 { 35 self->model = model; 35 if (self->model) 36 g_object_unref (self->model); 37 38 self->model = g_object_ref (model); 36 39 self->current = model->first; 37 40 … … 65 68 tny_gtk_attach_list_model_iterator_finalize (GObject *object) 66 69 { 70 TnyGtkAttachListModelIterator *self = (TnyGtkAttachListModelIterator *) object; 71 72 if (self->model) 73 g_object_unref (self->model); 74 67 75 (*parent_class->finalize) (object); 68 76 trunk/libtinymailui-gtk/tny-gtk-folder-store-tree-model-iterator.c
r3312 r3313 32 32 _tny_gtk_folder_store_tree_model_iterator_set_model (TnyGtkFolderStoreTreeModelIterator *self, TnyGtkFolderStoreTreeModel *model) 33 33 { 34 self->model = model; 34 if (self->model) 35 g_object_unref (self->model); 36 37 self->model = g_object_ref (model); 35 38 self->current = model->first; 36 39 … … 64 67 tny_gtk_folder_store_tree_model_iterator_finalize (GObject *object) 65 68 { 69 TnyGtkFolderStoreTreeModelIterator *self = (TnyGtkFolderStoreTreeModelIterator *) object; 70 71 if (self->model) 72 g_object_unref (self->model); 73 66 74 (*parent_class->finalize) (object); 67 75 trunk/libtinymailui-gtk/tny-gtk-header-list-iterator.c
r3312 r3313 33 33 _tny_gtk_header_list_iterator_set_model (TnyGtkHeaderListIterator *self, TnyGtkHeaderListModel *model) 34 34 { 35 self->model = model; 35 if (self->model) 36 g_object_unref (self->model); 37 38 self->model = g_object_ref (model); 36 39 37 40 /* It's not a list_copy, so don't free this list when … … 73 76 tny_gtk_header_list_iterator_finalize (GObject *object) 74 77 { 78 TnyGtkHeaderListIterator *self = (TnyGtkHeaderListIterator *) object; 79 80 if (self->model) 81 g_object_unref (self->model); 82 75 83 (*parent_class->finalize) (object); 76 84
