Hello everyone!
I am confused that after I call gtk_button_new() many times, how can I free these buttons. Let's see the following codes:
Code:
Gtkwidget *button;
button = gtk_button_new(); //the first call
button = gtk_button_new(); //the second call
button = gtk_button_new(); // the third call
The gtk_button_new() was called three times, and I think memory is eaten by every call, how can I release the memory used by the first and second calls.
Do other gtk Widgets work similar to button ?