From 1e4ded3cbd31fb3bab27645cb32dcf717ddcdb4a Mon Sep 17 00:00:00 2001 From: jpbl <jpbl> Date: Thu, 27 Oct 2005 15:04:14 +0000 Subject: [PATCH] segfault fix --- src/managerimpl.cpp | 12 ++++++++++++ src/managerimpl.h | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp index 149d63d89d..6ac5dd3ab2 100644 --- a/src/managerimpl.cpp +++ b/src/managerimpl.cpp @@ -933,6 +933,18 @@ ManagerImpl::callFailure(CALLID id) { } } +Tone * +ManagerImpl::getTelephoneTone() +{ + if(_telephoneTone) { + return _telephoneTone->getCurrentTone(); + } + else { + return NULL; + } +} + + /** * Multi Thread */ diff --git a/src/managerimpl.h b/src/managerimpl.h index d5786c0b64..dcfa29a435 100644 --- a/src/managerimpl.h +++ b/src/managerimpl.h @@ -203,7 +203,7 @@ name); void callFailure(CALLID id); // return 0 if no tone (init before calling this function) - Tone* getTelephoneTone() { return _telephoneTone->getCurrentTone(); }; + Tone* getTelephoneTone(); /** * @return true is there is one or many incoming call waiting -- GitLab