src/fontcache.cpp
changeset 6885 7d96edaa2d9b
parent 6884 a1b3e90eb3ac
child 7348 becce3f57dc7
--- a/src/fontcache.cpp	Wed Mar 28 09:27:38 2007 +0000
+++ b/src/fontcache.cpp	Wed Mar 28 14:31:52 2007 +0000
@@ -146,11 +146,11 @@
 	} while ((FT_Long)++index != (*face)->num_faces);
 
 
-#if defined(UNICODE)
-	free(font_path);
-#endif
 folder_error:
 registry_no_font_found:
+#if defined(UNICODE)
+	free(font_namep);
+#endif
 	RegCloseKey(hKey);
 	return err;
 }