summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-hung Hsieh <chh@google.com>2018-09-05 21:15:16 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-09-05 21:15:16 +0000
commit7226844773bee424e1a6e51ba04f6644f552ceb8 (patch)
tree83cd6a65f142dfc2727ea2ba492a11cfc59e7f49
parentdb8296e205b42259c4879fce9406b175629a2912 (diff)
parentddc7c9f537d6b4a982a0b3359e82aa51a513bfb6 (diff)
downloadwilhelm-7226844773bee424e1a6e51ba04f6644f552ceb8.tar.gz
Merge "Move free after CEngine_Destroyed."
-rw-r--r--src/itf/IObject.cpp3
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
}