diff --git a/fdbus/CFdbContext.cpp b/fdbus/CFdbContext.cpp index 45492428021c1aa3dfb9581bce1fa7cde29b6900..68696b7720ab5c0e91ae3d37b80051aa508b21db 100644 --- a/fdbus/CFdbContext.cpp +++ b/fdbus/CFdbContext.cpp @@ -75,7 +75,10 @@ CFdbContext *CFdbContext::getInstance() // In constructor: // mInstance will be assigned; // mInstanceMutex will be unlocked. - new CFdbContext(); + if (!mInstance) + { + new CFdbContext(); + } } return mInstance; }