From 5d3c610ab59c583a9379bc401249207c2e008d9b Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 28 Mar 2007 09:27:38 +0000 Subject: [PATCH] (svn r9518) -Fix [Windows]: do not free an uninitialized pointer. --- src/fontcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontcache.cpp b/src/fontcache.cpp index f976de4d47..47eaf92845 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;