mirror of git://git.sysmocom.de/ofono
Fix refcounting in GAtChat
This commit is contained in:
parent
2321230e69
commit
239ab461f7
|
@ -913,6 +913,7 @@ GAtChat *g_at_chat_new(GIOChannel *channel, int flags)
|
||||||
if (!chat)
|
if (!chat)
|
||||||
return chat;
|
return chat;
|
||||||
|
|
||||||
|
chat->ref_count = 1;
|
||||||
chat->next_cmd_id = 1;
|
chat->next_cmd_id = 1;
|
||||||
chat->next_notify_id = 1;
|
chat->next_notify_id = 1;
|
||||||
chat->flags = flags;
|
chat->flags = flags;
|
||||||
|
|
Loading…
Reference in New Issue