coverity#1321598 Resource leak in object
and coverity#1321597 Resource leak in object Change-Id: I6e9e517a394bea60c1f0550b17bacd653eee5cbc
This commit is contained in:
@@ -162,16 +162,15 @@ struct BogusRefCountPolicy
|
||||
{
|
||||
--rCount;
|
||||
--s_nEndOfScope;
|
||||
return true;
|
||||
}
|
||||
if(s_bShouldDecrement)
|
||||
else if(s_bShouldDecrement)
|
||||
{
|
||||
--rCount;
|
||||
s_bShouldDecrement = false;
|
||||
}
|
||||
else
|
||||
CPPUNIT_FAIL("Ref-counting policy decremented when it should not have.");
|
||||
return true;
|
||||
return rCount != 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user