Changeset 3311

Show
Ignore:
Timestamp:
01/29/08 16:57:52
Author:
pvanhoof
Message:

Fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail/tny-simple-list-iterator.c

    r3310 r3311  
    3939 
    4040        g_mutex_lock (lpriv->iterator_lock); 
     41        if (self->model) 
     42                g_object_unref (self->model); 
    4143        self->model = (TnySimpleList *) g_object_ref (self->model); 
    4244        self->current = lpriv->first; 
  • trunk/libtinymailui-gtk/tny-gtk-account-list-model-iterator.c

    r3309 r3311  
    3232_tny_gtk_account_list_model_iterator_set_model (TnyGtkAccountListModelIterator *self, TnyGtkAccountListModel *model) 
    3333{ 
     34        if (self->model) 
     35                g_object_unref (self->model); 
    3436        self->model = (TnyGtkAccountListModel *) g_object_ref (model); 
    3537        self->current = model->first; 
  • trunk/libtinymailui-gtk/tny-gtk-attach-list-model-iterator.c

    r3309 r3311  
    3333_tny_gtk_attach_list_model_iterator_set_model (TnyGtkAttachListModelIterator *self, TnyGtkAttachListModel *model) 
    3434{ 
     35        if (self->model) 
     36                g_object_unref (self->model); 
    3537        self->model = (TnyGtkAttachListModel *) g_object_ref (model); 
    3638        self->current = model->first; 
  • trunk/libtinymailui-gtk/tny-gtk-header-list-iterator.c

    r3309 r3311  
    3434{ 
    3535 
     36        if (self->model) 
     37                g_object_unref (self->model); 
    3638        self->model = (TnyGtkHeaderListModel *) g_object_ref (model); 
    3739