Diff between c03184efcba31643349c734fbd4b6442782e10b3 and 283b4b7d694f276e421b0db823a4905983699255

Changed Files

File Additions Deletions Status
attrib/gattrib.c +4 -0 modified

Full Patch

diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index fedc42e..0f011f0 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -255,6 +255,8 @@ static gboolean disconnect_timeout(gpointer data)
 	struct _GAttrib *attrib = data;
 	struct command *c;
 
+	g_attrib_ref(attrib);
+
 	c = g_queue_pop_head(attrib->requests);
 	if (c == NULL)
 		goto done;
@@ -273,6 +275,8 @@ static gboolean disconnect_timeout(gpointer data)
 done:
 	attrib->stale = TRUE;
 
+	g_attrib_unref(attrib);
+
 	return FALSE;
 }