Re: Avoid Memory Leakage



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]