Need to free fonts, this patch better.
Index: app.cpp
===================================================================
--- app.cpp (revision 6089)
+++ app.cpp (working copy)
@@ -656,6 +656,16 @@
CheckVersion();
+#ifdef __WXMSW__
+ wxString font = wxFindFirstFile(_T("share/CodeBlocks/fonts/*.*"));
+ while (!font.IsEmpty())
+ {
+ ::AddFontResource(font);
+ font = wxFindNextFile();
+ }
+ ::SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
+#endif
+
// run startup script
try
{
@@ -725,6 +735,8 @@
#ifdef __WXMSW__
if (m_ExceptionHandlerLib)
FreeLibrary(m_ExceptionHandlerLib);
+
+
#endif
if (m_pSingleInstance)
delete m_pSingleInstance;
@@ -732,6 +744,16 @@
// ultimate shutdown...
Manager::Free();
+#ifdef __WXMSW__
+ wxString font = wxFindFirstFile(_T("share/CodeBlocks/fonts/*.*"));
+ while (!font.IsEmpty())
+ {
+ ::RemoveFontResource(font);
+ font = wxFindNextFile();
+ }
+ ::SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
+#endif
+
// WX docs say that this function's return value is ignored,
// but we return our value anyway. It might not be ignored at some point...
return m_Batch ? m_BatchExitCode : 0;
[attachment deleted by admin]