Re: GIOChannel close vs. unref



> From: Owen Taylor <otaylor redhat com>
>
> Generally, mixing up memory management with actions such as closing 
> a stream is a bad idea, though more of an argument could be made
> for it if the underlying stream was created along with the 
> GIOChannel with g_io_channel_new_from_file().
>

The g_io_channel_new_from_file() case is exactly what I was worring
about. Sounds like GIOChannel needs a close_on_final_unref flag.

					Ron Steinke




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