Re: Memory question
- From: Christian Neumair <chris gnome-de org>
- To: David Rosal <david rosal upf edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Memory question
- Date: Thu, 29 Sep 2005 12:16:02 +0200
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]