...
Gtk seems to clean itself up by simply calling unset(). In the main ...
Hmm, I have a class extending a GtkDialog and I'm listening to the 'destroy'
signal. However, this is not sent when I just unset my derived class and the
dialog window remains.
I have to call $mydlg->destroy() myself
Even more, I've added a __destruct function to my class (which is called
when I unset my derived object) but php fails if I try to call
parent::__destruct() with the error
"Fatal error: Call to undefined method GtkDialog::__destruct()"
So the gtk resources (and propably reffering php resources) are
not being freed just by unsetting.
Now the real test:
I create a dialog and after I call destroy() manually and then I unset the object.
I do this repeatedly and memory usage keeps increasing.
So neither destroy() frees the memory.
There is propably some refference of some object which is not dying.
How can I ensure that there are no child widgets somewhere in my hierarchy
that are still refferenced ?
Kostas