Re: Destroying a window



On Tue, Mar 12, 2002 at 06:11:05PM +0000, Martyn Russell wrote:
I knew thought that gtk_widget_unref() should be called before
gtk_widget_destroy().  but for some reason it wasnt actually freeing the
memory.  What glib function would be called to remove this object from
its cache??
---end quoted text---

Well, I looked at the souces (1.2.10) and gtk_widget_unref(..) will do the same
job gtk_widget_destroy(..) do if it's reference count gets 0..
So I see no reason for calling the too functions..

There's no external function (a function that you can use) that makes it..
And I doubt if you can access it's cache..
Do you realy have to free(..) it???
-- 
Marcelo R Leitner <mrl netbank com br>
ICQ #: 29966851



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]