summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-09-30 15:20:31 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-09-30 15:20:31 -0300
commit401374312bdc966bf386a1d89bf6cd0f74a4314c (patch)
treedcc6586fd228dcbb795d496eb035e99438db1e64
parentd090c7671b64780d077e9daa89ba26845891f82a (diff)
Remove device discovery timer on device removal.
-rw-r--r--src/device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 9862652a..97b289ee 100644
--- a/src/device.c
+++ b/src/device.c
@@ -134,6 +134,9 @@ static void device_free(gpointer user_data)
if (device->disconn_timer)
g_source_remove(device->disconn_timer);
+ if (device->discov_timer)
+ g_source_remove(device->discov_timer);
+
g_free(device->path);
g_free(device);
}