diff --git a/steam_helper/steam.c b/steam_helper/steam.c index 5282dce2..5d437ed6 100644 --- a/steam_helper/steam.c +++ b/steam_helper/steam.c @@ -118,7 +118,7 @@ static char *escape_path_unix_to_dos( const char *path ) if ((escaped = malloc( len ))) WideCharToMultiByte( CP_UTF8, 0, tmp, (dst - tmp), escaped, len, NULL, NULL ); done: - free( dos ); + HeapFree( GetProcessHeap(), 0, dos ); free( tmp ); return escaped; }