diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2009-10-22 18:41:47 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2009-10-22 18:41:47 +0000 |
commit | be796e703ae8a05dde29c26f92f545b5ec0c40bc (patch) | |
tree | 16bf92d241aef3686453a42b65b225714f5b8199 /apps | |
parent | 496282194caafbfe404ebe83f5cc9c4c617df3f2 (diff) |
Fix a refcount error introduced by yesterday's OBJ_MULTIPLE commit.
When an object is being unlinked from its container *and* being returned to
the caller, we do not want to decrement the reference count after unlinking
it from the container, as the reference that the container held is what we
are returning to the caller... and if it was the only remaining reference to
the object, that could result in the object being destroyed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@225405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions