Fix refcounting in GAtChat

This commit is contained in:
Denis Kenzior 2009-08-06 10:32:29 -05:00
parent 2321230e69
commit 239ab461f7
1 changed files with 1 additions and 0 deletions

View File

@ -913,6 +913,7 @@ GAtChat *g_at_chat_new(GIOChannel *channel, int flags)
if (!chat)
return chat;
chat->ref_count = 1;
chat->next_cmd_id = 1;
chat->next_notify_id = 1;
chat->flags = flags;