How to deallocate memory?

Title: How to deallocate memory?

Is it possible to free the memory allocated for a widget using gtk_widget_destroy().
However, when I try to free a window or a button with gtk_widget_destroy(GTK_WIDGET(widget))
I have a run-time error saying that it is not a widget.

How do you deallocate any widget allocated with its gtk_<name>_new(...)?

Esteban Quijano Vincenzi
Artinsoft corp.

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