Re: GIOChannel close vs. unref
- From: Ron Steinke <rsteinke w-link net>
- To: otaylor redhat com, rsteinke w-link net
- Cc: gtk-list gnome org
- Subject: Re: GIOChannel close vs. unref
- Date: Sun, 06 May 2001 09:52:30 -0700
> 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]