Fix: Fix leak when sortbyp failes with exception (#6166)
Co-authored-by: Kim Kulling <kim.kulling@draeger.com>
This commit is contained in:
co-authored by
Kim Kulling
parent
64073458bd
commit
9d9a80739d
@@ -354,9 +354,10 @@ ASSIMP_API const aiScene *aiApplyCustomizedPostProcessing(const aiScene *scene,
|
||||
void CallbackToLogRedirector(const char *msg, char *dt) {
|
||||
ai_assert(nullptr != msg);
|
||||
ai_assert(nullptr != dt);
|
||||
LogStream *s = (LogStream *)dt;
|
||||
|
||||
s->write(msg);
|
||||
LogStream *stream = (LogStream *)dt;
|
||||
if (stream != nullptr) {
|
||||
stream->write(msg);
|
||||
}
|
||||
}
|
||||
|
||||
static LogStream *DefaultStream = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user