The m_FontCollection wasn't initialized so it could cause a crash on exit.

Some code cleanup.
This commit is contained in:
Kimmo Pekkola
2009-09-04 17:18:15 +00:00
parent 4bf4e51126
commit 4274397806
5 changed files with 8 additions and 27 deletions

View File

@ -175,10 +175,7 @@ public:
std::wstring MakePathAbsolute(std::wstring path);
//========================================================
//MattKing Code
Gdiplus::PrivateFontCollection* GetPrivateFontCollection(){ return m_FontCollection; }
//MattKing Code End
protected:
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
@ -320,12 +317,9 @@ private:
CRainmeter* m_Rainmeter; // Pointer to the main object
static int m_InstanceCount;
static int c_InstanceCount;
//==========================================================
//MattKing code
Gdiplus::PrivateFontCollection* m_FontCollection;
//MattKing end
};
#endif