dont refcount the model twice for the first view

SVN revision: 6009
This commit is contained in:
Till Adam 2002-03-02 16:40:57 +00:00
parent e45338be4d
commit fdb0dbc708
2 changed files with 6 additions and 5 deletions

View File

@ -73,6 +73,8 @@ e_view_model_register_view(E_View_Model *m, E_View *v)
D_ENTER;
v->model = m;
m->views = evas_list_append(m->views, v);
/* dont ref the first time */
if (m->views->next)
e_object_ref (E_OBJECT(v->model));
D_RETURN;
}

View File

@ -1763,7 +1763,6 @@ e_view_update(E_View *v)
if (v->options.back_pixmap)
{
Imlib_Updates up;
up = evas_render_updates(v->evas);
/* special code to handle if we are double buffering to a pixmap */
/* and clear sections of the window if they got updated */