[Patch]Unref GIOChannel in g_at_chat_new_from_tty

Zhang, Zhenhua zhenhua.zhang at intel.com
Wed Sep 23 20:22:22 PDT 2009


Hi,

Attached is the patch to unref GIOChannel in g_at_chat_new_from_tty. If the 
GAtChat is created from g_at_chat_new, the reference count of channel is 
increased by g_io_add_watch_full(channel), so we need to unref it.

If GAtChat is failed to create, we also need to unref channel to free it.

Please review it.

Regards,
Zhenhua
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Unref-GIOChannel-in-g_at_chat_new_from_tty.patch
Type: application/octet-stream
Size: 918 bytes
Desc: 0001-Unref-GIOChannel-in-g_at_chat_new_from_tty.patch
URL: <http://lists.ofono.org/pipermail/ofono/attachments/20090924/89506fc2/attachment.obj>


More information about the ofono mailing list