Freeing memory allocated with gtk_*_new()
- From: Sean Christopher Rhea <srhea ece utexas edu>
- To: gtk-list redhat com
- Subject: Freeing memory allocated with gtk_*_new()
- Date: Wed, 27 Jan 1999 12:47:14 -0600 (CST)
What is the "proper" way to free memory allocated with gtk_*_new()?
For instance:
GtkWidget * foo = gtk_label_new ( "bar" );
/* use foo */
free ( foo ); /* this is wrong, right? */
gtktypes.h declares gtk_type_free, but do I use that or is there some
other (preferred) way to do it?
Sean C. Rhea
http://www.ece.utexas.edu/~srhea
--- Please respond to srhea@ieee.org ---
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]