|
|
| Author |
Message |
|
|
TriKri Familiar Face
Joined: 19 Mar 2008 Posts: 14
|
Posted: Wed Mar 26, 2008 2:43 pm Post subject: Terminating application+ |
|
|
Hello!
When I press escape in my program, I call gtk_main_quit();. The window with all things inside disappears. But is there some other function I should call to release the widgets I have created? I have created a window with gtk_window_new(), what happens to that window? Is the memory still in use or has it been freed?
Thanks in advance. |
|
| Back to top |
|
 |
Wolfgang Familiar Face
Joined: 05 Feb 2008 Posts: 37
|
Posted: Thu Mar 27, 2008 8:44 am Post subject: |
|
|
| When your process ends, ENTIRE its memory is released. |
|
| Back to top |
|
 |
TriKri Familiar Face
Joined: 19 Mar 2008 Posts: 14
|
Posted: Thu Mar 27, 2008 4:59 pm Post subject: |
|
|
| Well, my program does end after gtk ends its main loop. But what about if your program doen't end, if it is going to minimize to the tray for example and want to destroy all widgets because of that reason? |
|
| Back to top |
|
 |
Wolfgang Familiar Face
Joined: 05 Feb 2008 Posts: 37
|
Posted: Thu Mar 27, 2008 5:04 pm Post subject: |
|
|
| In this case it's enough to destroy main window. For destroing widgets responds its parent. To escape special cases, in which memory leaks are possible, see documentation. |
|
| Back to top |
|
 |
|