Free object/widget in GTK?

Posted by wag2639 on Stack Overflow See other posts from Stack Overflow or by wag2639
Published on 2010-05-19T02:35:41Z Indexed on 2010/05/19 2:40 UTC
Read the original article Hit count: 208

Filed under:
|

I've got a pack box in my GTK application and I'm replacing it every once in a while with a completely new entry (at least for now cause I'm in a hurry).

Since I'm replacing it with a new instance, do I need to explicitly free from memory the old pack box contents or is there some garbage collection in GTK?

If I do need to explicitly need to free the object, is there a command that will recursively go to all objects in that tree (like will it clear my button in a box container inside my main pack box)?

I'm using C/GTK-2.0 (gcc v4.4.3 and GTK 2.20.0).

© Stack Overflow or respective owner

Related posts about c

    Related posts about gtk