From afd0611ff822b0ab42d2347a7bb754f30cc5d8fa Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 30 Aug 2010 10:34:21 -0500 Subject: voicecall: Fix crash during cleanup --- src/voicecall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3