mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r9518) -Fix [Windows]: do not free an uninitialized pointer.
This commit is contained in:
parent
c738cdc0f0
commit
5d3c610ab5
|
@ -146,10 +146,10 @@ static FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
|
|||
} while ((FT_Long)++index != (*face)->num_faces);
|
||||
|
||||
|
||||
folder_error:
|
||||
#if defined(UNICODE)
|
||||
free(font_path);
|
||||
#endif
|
||||
folder_error:
|
||||
registry_no_font_found:
|
||||
RegCloseKey(hKey);
|
||||
return err;
|
||||
|
|
Loading…
Reference in New Issue