Merge "Fix for the crash that was caused when accessing UlpProxy"
This commit is contained in:
commit
b3a5168ac1
1 changed files with 5 additions and 0 deletions
|
@ -90,6 +90,11 @@ LocEngAdapter::~LocEngAdapter()
|
||||||
|
|
||||||
void LocEngAdapter::setUlpProxy(UlpProxyBase* ulp)
|
void LocEngAdapter::setUlpProxy(UlpProxyBase* ulp)
|
||||||
{
|
{
|
||||||
|
if (ulp == mUlp) {
|
||||||
|
//This takes care of the case when double initalization happens
|
||||||
|
//and we get the same object back for UlpProxyBase . Do nothing
|
||||||
|
return;
|
||||||
|
}
|
||||||
delete mUlp;
|
delete mUlp;
|
||||||
LOC_LOGV("%s] %p", __func__, ulp);
|
LOC_LOGV("%s] %p", __func__, ulp);
|
||||||
if (NULL == ulp) {
|
if (NULL == ulp) {
|
||||||
|
|
Loading…
Reference in a new issue