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:
Till Adam 2002-03-11 17:35:51 +00:00
parent 0fe8343018
commit 0591da01bb
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}