diff options
author | rubidium <rubidium@openttd.org> | 2007-03-28 09:27:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-28 09:27:38 +0000 |
commit | 8b8f20c216b6212d1901ba13e310ea4b792cb834 (patch) | |
tree | e4137c94a54cd015e654b4e1ee6c09dd29e5a3c5 /src/fontcache.cpp | |
parent | 0ce62afc78208f58cf14396af56582647cef64f2 (diff) | |
download | openttd-8b8f20c216b6212d1901ba13e310ea4b792cb834.tar.xz |
(svn r9518) -Fix [Windows]: do not free an uninitialized pointer.
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r-- | src/fontcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp index f976de4d4..47eaf9284 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -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; |