summaryrefslogtreecommitdiff
path: root/src/shared/error_report.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/error_report.cpp')
-rw-r--r--src/shared/error_report.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shared/error_report.cpp b/src/shared/error_report.cpp
index c1b25229..02ff2d56 100644
--- a/src/shared/error_report.cpp
+++ b/src/shared/error_report.cpp
@@ -36,7 +36,6 @@ void reportError(LPCSTR format, ...)
va_end(argList);
MessageBoxA(NULL, buffer, "Error", MB_OK | MB_ICONERROR);
- LocalFree(buffer);
}
void reportError(LPCWSTR format, ...)
@@ -52,7 +51,6 @@ void reportError(LPCWSTR format, ...)
va_end(argList);
MessageBoxW(NULL, buffer, L"Error", MB_OK | MB_ICONERROR);
- LocalFree(buffer);
}
@@ -99,4 +97,4 @@ std::wstring getCurrentErrorStringW()
return result;
}
}
-} // namespace MOShared
+} // namespace MOShared