Re: How to deallocate memory?



Esteban Quijano Vincenzi <Esteban Quijano artinsoft com> writes:
> 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.

A bug in your program. Maybe you are freeing things twice and the
second time you have junk memory instead of a widget.

Havoc




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