Re: Memory question



Am Dienstag, den 27.09.2005, 17:53 +0200 schrieb David Rosal:
gtk_entry_set_text(GTK_ENTRY(entry), g_strdup("banana");

Am I leaking memory? (...)
My question is: Is that memory chunk free'd before the program exits?

If I'm taken correctly, your OS is meant to free *all* memory you
allocated during the program execution on exit. Leaks just mean that the
memory is lost during program execution, which can be equally bad if the
application runs for a long time and you leak memory very often, since
the allocated but lost memory is not available for other programs.

-- 
Christian Neumair <chris gnome-de org>


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