Re: How to quit gtk_main with freeing memory?
- From: Matthias Mann <matman matman24 org>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to quit gtk_main with freeing memory?
- Date: Wed, 20 Aug 2003 12:13:09 +0200
On Tuesday August 19 2003 10:41 CEST, ralf deres-mueller de
wrote:
Hello,
using valgrind gives me hundreds of errors because I use
gtk_exit(0); or gtk_main_quit();
I'm still learning Gtk+ but have much experiences with ANSI C
and can say that you need to free memory yourself in source
code.
How i know, functions like gtk_main_quit() don't free allocated
memory. How gtk_exit() could know about memory that you used?
Use free(x) and g_free(x) to free memory before calling
gtk_exit().
best regards,
mathew
--
______________________________________________
get free software: www.matman24.org
______________________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]