Re: please help me...



On Wed, Feb 27, 2002 at 11:09:00AM +0900, Yun Jae Sig wrote:
I'm developing software by gtk+-1.2.10.
I have problem in using gtk.
I created container widget and then packed several widgets in it.
When I destroy container widget by gtk_widget_destroy, memory was 
not freed.
Widget disappeared in screen, but memory was never freed.

Source code is following....

  == CUT ==

Create_MainMenu_Interface create MainVertical_Box and pack serveral image widgets in it
and then register MainVertical_Box in top widget to "MainVertical_Box".
Destory_MainMenu_Interface destroy MainVertical_Box by gtk_widget_destroy.
Widget disappeared in screen but memory was never freed.
Please help me....
---end quoted text---

It's not you or gtk that is not freeing the memory, it's glib that caches this
memory in case you alloc something else after this free.
Check out the glib's documentation/src for more details..

[]'s
-- 
Marcelo R Leitner <mrl netbank com br>
ICQ #: 29966851



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