Re: Avoid Memory Leakage
- From: Sven Neumann <sven gimp org>
- To: Christoph Kappel <unexist prime zapto org>
- Cc: gtk-list gnome org
- Subject: Re: Avoid Memory Leakage
- Date: 03 Dec 2003 11:31:40 +0100
Hi,
Christoph Kappel <unexist prime zapto org> writes:
> I will try to make a text case later, guess the leak occurs only in
> conjunction with the GIOChannels. I don't use any GStrings in my
> project, except the GString buffer from the GIOChannels. Closing the
> channel und flushing the buffer should be enough to free all
> allocated memory, isn't it?
You need to unref the GIOChannel as well. Actually the typical usage
is not to close explicitely but to set close_on_unref().
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]