From dbca022e317c239f63225e226257b4c3e2d829b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 1 Apr 2015 09:20:40 -0700 Subject: [PATCH] Cleanup. --- tools/shaderc/shaderc_dx9.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/shaderc/shaderc_dx9.cpp b/tools/shaderc/shaderc_dx9.cpp index ab24bc28..124cb86a 100644 --- a/tools/shaderc/shaderc_dx9.cpp +++ b/tools/shaderc/shaderc_dx9.cpp @@ -250,7 +250,7 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b uint8_t nul = 0; bx::write(_writer, nul); - #if !defined(__MINGW32__) +#if !defined(__MINGW32__) if (_cmdLine.hasArg('\0', "disasm") ) { LPD3DXBUFFER disasm; @@ -269,7 +269,8 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b disasm->Release(); } } - #endif +#endif // !defined(__MINGW32__) + if (NULL != code) { code->Release();