summaryrefslogtreecommitdiffstats
path: root/audio/manager.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-09-27 07:53:29 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-09-27 07:53:29 +0000
commitd3074a97b9803de16a65e6d377060b72f026dfd7 (patch)
tree00822257e6c322e784796a632e4ba2bfbf7ed418 /audio/manager.c
parentff57b7e4bafc2437d7ef147044b24835f3a4f4d2 (diff)
Add missing NULL check
Diffstat (limited to 'audio/manager.c')
-rw-r--r--audio/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/manager.c b/audio/manager.c
index 30b78632..43635578 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -347,7 +347,8 @@ done:
data->cb(data->device, data->cb_data);
} else {
remove_device(data->device);
- data->cb(NULL, data->cb_data);
+ if (data->cb)
+ data->cb(NULL, data->cb_data);
}
if (data->msg)
dbus_message_unref(data->msg);