projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd32080
)
Call disable callback before remove callback
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 12 Dec 2008 00:17:33 +0000
(
01:17
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 12 Dec 2008 00:17:33 +0000
(
01:17
+0100)
src/element.c
patch
|
blob
|
history
diff --git
a/src/element.c
b/src/element.c
index
93c31df
..
2d8168d
100644
(file)
--- a/
src/element.c
+++ b/
src/element.c
@@
-1893,6
+1893,8
@@
static gboolean remove_element(GNode *node, gpointer user_data)
return FALSE;
if (element->driver) {
+ disable_element(element);
+
if (element->driver->remove)
element->driver->remove(element);
@@
-2047,6
+2049,8
@@
static gboolean free_driver(GNode *node, gpointer data)
DBG("element %p name %s", element, element->name);
if (element->driver) {
+ disable_element(element);
+
if (element->driver->remove)
element->driver->remove(element);