Re: Destroying a window



On Tue, 2002-03-12 at 19:04, mrl netbank com br wrote:
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???

ABSOLUTELY!

Im writing software which responds to telephony events.  In particular I
have a new window for each call that each user has. At any time there
could be 20 users, over the course of the day thats 20 x n (calls).  The
mem not being freed correctly causes a leak of just over 1 meg over the
day.  If it was used in a call centre it would be more serious.


-- 
Marcelo R Leitner <mrl netbank com br>
ICQ #: 29966851
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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