diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-09-30 15:20:31 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-09-30 15:20:31 -0300 |
commit | 401374312bdc966bf386a1d89bf6cd0f74a4314c (patch) | |
tree | dcc6586fd228dcbb795d496eb035e99438db1e64 /src/device.c | |
parent | d090c7671b64780d077e9daa89ba26845891f82a (diff) |
Remove device discovery timer on device removal.
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 3 |
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); } |