summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-08-30 10:34:21 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-08-30 10:34:21 -0500
commitafd0611ff822b0ab42d2347a7bb754f30cc5d8fa (patch)
tree2c68967aa16a9a332b4238248a62f54c92f4a09e /src
parent3b95fe1d10aa72c9619116d6a2c17d6874de6cb1 (diff)
downloadofono-afd0611ff822b0ab42d2347a7bb754f30cc5d8fa.tar.bz2
voicecall: Fix crash during cleanup
Diffstat (limited to 'src')
-rw-r--r--src/voicecall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 6ad58ad3..11dc6251 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -1953,7 +1953,8 @@ static void voicecall_unregister(struct ofono_atom *atom)
vc->sim_watch = 0;
}
- dial_request_finish(vc, TRUE);
+ if (vc->dial_req)
+ dial_request_finish(vc, TRUE);
for (l = vc->call_list; l; l = l->next)
voicecall_dbus_unregister(vc, l->data);