mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-05-24 04:18:19 +03:00
steam_helper: Free retval of wine_get_dos_file_name() using HeapFree().
This commit is contained in:
parent
5c4a530164
commit
cd79459d5b
@ -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 );
|
if ((escaped = malloc( len ))) WideCharToMultiByte( CP_UTF8, 0, tmp, (dst - tmp), escaped, len, NULL, NULL );
|
||||||
|
|
||||||
done:
|
done:
|
||||||
free( dos );
|
HeapFree( GetProcessHeap(), 0, dos );
|
||||||
free( tmp );
|
free( tmp );
|
||||||
return escaped;
|
return escaped;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user