Hi Santiago, On Thu, Sep 29, 2011, Santiago Carot-Nemesio wrote: > @@ -40,6 +40,7 @@ struct thermometer { > GAttrib *attrib; /* GATT connection */ > struct att_range *svc_range; /* Thermometer range */ > gint attioid; /* Att watcher id */ > + gint attindid; /* Att incications id */ I suspect this should also be a guint? > + if (t->attindid) attindid > 0 > + if (t->attindid) { > + g_attrib_unregister(t->attrib, t->attindid); > + t->attindid = 0; > + } attindid > 0 Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html