mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r9518) -Fix [Windows]: do not free an uninitialized pointer.
This commit is contained in:
parent
0ce62afc78
commit
8b8f20c216
@ -146,10 +146,10 @@ static FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
|
|||||||
} while ((FT_Long)++index != (*face)->num_faces);
|
} while ((FT_Long)++index != (*face)->num_faces);
|
||||||
|
|
||||||
|
|
||||||
folder_error:
|
|
||||||
#if defined(UNICODE)
|
#if defined(UNICODE)
|
||||||
free(font_path);
|
free(font_path);
|
||||||
#endif
|
#endif
|
||||||
|
folder_error:
|
||||||
registry_no_font_found:
|
registry_no_font_found:
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user