forked from enlightenment/enlightenment
ok, embarassing bug. Dont just enherit from observer/observee, call their
cleanup funcs too. This should fix the crashes people have been seeing. Sorry about that. :( SVN revision: 6059
This commit is contained in:
parent
0fe8343018
commit
0591da01bb
|
@ -48,7 +48,7 @@ e_view_look_cleanup(E_View_Look *l)
|
|||
D_ENTER;
|
||||
e_view_machine_unregister_look(l);
|
||||
e_object_unref(E_OBJECT(l->obj));
|
||||
e_object_cleanup(E_OBJECT(l));
|
||||
e_observer_cleanup(E_OBSERVER(l));
|
||||
D_RETURN;
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ e_view_look_objects_cleanup(E_View_Look_Objects *l)
|
|||
IF_FREE(l->icb);
|
||||
IF_FREE(l->icb_bits);
|
||||
IF_FREE(l->layout);
|
||||
e_object_cleanup(E_OBJECT(l));
|
||||
e_observee_cleanup(E_OBSERVEE(l));
|
||||
D_RETURN;
|
||||
}
|
||||
|
||||
|
|
|
@ -1613,7 +1613,7 @@ e_view_cleanup(E_View * v)
|
|||
/* FIXME: clean up the rest!!! this leaks ... */
|
||||
|
||||
/* Call the destructor of the base class */
|
||||
e_object_cleanup(E_OBJECT(v));
|
||||
e_observer_cleanup(E_OBSERVER(v));
|
||||
D_RETURN;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue