diff --git a/renderdoc/android/android_tools.cpp b/renderdoc/android/android_tools.cpp index 6973d0a0d..69cad8d38 100644 --- a/renderdoc/android/android_tools.cpp +++ b/renderdoc/android/android_tools.cpp @@ -157,8 +157,8 @@ struct ToolPathCache static ToolPathCache &getCache() { - static ToolPathCache cache; - return cache; + static ToolPathCache *cache = new ToolPathCache; + return *cache; } std::string getToolPath(ToolDir subdir, const std::string &toolname, bool checkExist)