Re: Memory question
- From: HuamiSoft Hubert Sokolowski <h sokolowski huamisoft com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Memory question
- Date: Tue, 27 Sep 2005 17:58:09 +0200
On Tue, 27 Sep 2005 17:53:17 +0200
David Rosal <david rosal upf edu> wrote:
Hello.
I know this is a general C programming issue, but...
It is a memory leak to call g_strdup() as argument to other function?
For example, if I do this:
gtk_entry_set_text(GTK_ENTRY(entry), g_strdup("banana");
Am I leaking memory?
yes, of course.
--
HuamiSoft Hubert Sokolowski
http://www.huamisoft.com/
tel. 501456743
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]