summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-28 09:27:38 +0000
committerrubidium <rubidium@openttd.org>2007-03-28 09:27:38 +0000
commit5d3c610ab59c583a9379bc401249207c2e008d9b (patch)
treee4137c94a54cd015e654b4e1ee6c09dd29e5a3c5 /src
parentc738cdc0f0bbe21dc5551cc5d5e7979682efa533 (diff)
downloadopenttd-5d3c610ab59c583a9379bc401249207c2e008d9b.tar.xz
(svn r9518) -Fix [Windows]: do not free an uninitialized pointer.
Diffstat (limited to 'src')
-rw-r--r--src/fontcache.cpp2
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;