diff options
author | Chih-hung Hsieh <chh@google.com> | 2018-09-05 21:15:16 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-09-05 21:15:16 +0000 |
commit | 7226844773bee424e1a6e51ba04f6644f552ceb8 (patch) | |
tree | 83cd6a65f142dfc2727ea2ba492a11cfc59e7f49 | |
parent | db8296e205b42259c4879fce9406b175629a2912 (diff) | |
parent | ddc7c9f537d6b4a982a0b3359e82aa51a513bfb6 (diff) | |
download | wilhelm-7226844773bee424e1a6e51ba04f6644f552ceb8.tar.gz |
Merge "Move free after CEngine_Destroyed."
-rw-r--r-- | src/itf/IObject.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/itf/IObject.cpp b/src/itf/IObject.cpp index befe939..adcc4b2 100644 --- a/src/itf/IObject.cpp +++ b/src/itf/IObject.cpp @@ -629,11 +629,10 @@ void IObject_Destroy(SLObjectItf self) // The mutex is unlocked and destroyed by IObject_deinit, which is the last deinitializer memset(thiz, 0x55, clazz->mSize); // catch broken applications that continue using interfaces // was ifdef USE_DEBUG but safer to do this unconditionally - free(thiz); - if (SL_OBJECTID_ENGINE == clazz->mSLObjectID) { CEngine_Destroyed((CEngine *) thiz); } + free(thiz); SL_LEAVE_INTERFACE_VOID } |