Skip to content

Commit d3b60ae

Browse files
committed
fix 2 memleaks
1 parent c106c97 commit d3b60ae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/CrashHandler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ void UninstallCrashHandler() {
861861
str::FreePtr(&gSystemInfo);
862862
str::FreePtr(&gSettingsFile);
863863
str::FreePtr(&gModulesInfo);
864+
str::FreePtr(&gCrashFilePath);
864865
delete gCrashHandlerAllocator;
865866
}
866867

src/SumatraStartup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static void SetupCrashHandler() {
404404
static HWND FindPrevInstWindow(HANDLE* hMutex) {
405405
// create a unique identifier for this executable and appdata combination
406406
// (allows independent side-by-side installations)
407-
TempStr combinedPath = str::Join(GetSelfExePathTemp(), "|", GetAppDataDirTemp());
407+
TempStr combinedPath = str::JoinTemp(GetSelfExePathTemp(), "|", GetAppDataDirTemp());
408408
str::ToLowerInPlace(combinedPath);
409409
u32 hash = MurmurHash2(combinedPath, str::Len(combinedPath));
410410
TempStr mapId = str::FormatTemp("SumatraPDF-%08x", hash);

0 commit comments

Comments
 (0)