summaryrefslogtreecommitdiff
path: root/gatchat
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-08-06 10:32:29 -0500
committerMarcel Holtmann <marcel@holtmann.org>2009-08-06 17:48:44 -0700
commitacfb52bb7e18a227a5c141af9e112ad8f4255a0b (patch)
tree1ae3db519e8c4413f8a4e9a4eba86db879a64d7b /gatchat
parenteee49d1f27121885ea80ee8ceb3bc3bf8d777298 (diff)
downloadconnman-acfb52bb7e18a227a5c141af9e112ad8f4255a0b.tar.gz
connman-acfb52bb7e18a227a5c141af9e112ad8f4255a0b.tar.bz2
connman-acfb52bb7e18a227a5c141af9e112ad8f4255a0b.zip
Fix refcounting in GAtChat
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gatchat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
index 15cc934c..d06b5008 100644
--- a/gatchat/gatchat.c
+++ b/gatchat/gatchat.c
@@ -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;