mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-06 20:23:21 +02:00
fix a crash and a memory leak in vhacd-util
This commit is contained in:
parent
9bacab07e6
commit
1cb330057e
2 changed files with 5 additions and 1 deletions
|
@ -101,7 +101,10 @@ private:
|
|||
};
|
||||
|
||||
inline void traceEvent(const QLoggingCategory& category, const QString& name, EventType type, const QString& id = "", const QVariantMap& args = {}, const QVariantMap& extra = {}) {
|
||||
DependencyManager::get<Tracer>()->traceEvent(category, name, type, id, args, extra);
|
||||
const auto& tracer = DependencyManager::get<Tracer>();
|
||||
if (tracer) {
|
||||
tracer->traceEvent(category, name, type, id, args, extra);
|
||||
}
|
||||
}
|
||||
|
||||
inline void traceEvent(const QLoggingCategory& category, const QString& name, EventType type, int id, const QVariantMap& args = {}, const QVariantMap& extra = {}) {
|
||||
|
|
|
@ -51,6 +51,7 @@ bool vhacd::VHACDUtil::loadFBX(const QString filename, FBXGeometry& result) {
|
|||
return false;
|
||||
}
|
||||
result = *geom;
|
||||
delete geom;
|
||||
|
||||
reSortFBXGeometryMeshes(result);
|
||||
} catch (const QString& error) {
|
||||
|
|
Loading…
Reference in a new issue