Kaydet (Commit) 5b8e4f3d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1321598 Resource leak in object

and

coverity#1321597 Resource leak in object

Change-Id: I6e9e517a394bea60c1f0550b17bacd653eee5cbc
üst cefbbd5c
...@@ -162,16 +162,15 @@ struct BogusRefCountPolicy ...@@ -162,16 +162,15 @@ struct BogusRefCountPolicy
{ {
--rCount; --rCount;
--s_nEndOfScope; --s_nEndOfScope;
return true;
} }
if(s_bShouldDecrement) else if(s_bShouldDecrement)
{ {
--rCount; --rCount;
s_bShouldDecrement = false; s_bShouldDecrement = false;
} }
else else
CPPUNIT_FAIL("Ref-counting policy decremented when it should not have."); CPPUNIT_FAIL("Ref-counting policy decremented when it should not have.");
return true; return rCount != 0;
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment