mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added cache for the fonts.
Fixed a memory leak in the string meter. Changed the library project to use precompiled headers.
This commit is contained in:
@ -18,6 +18,9 @@
|
||||
|
||||
#pragma warning(disable : 4996)
|
||||
|
||||
#define _CRTDBG_MAP_ALLOC
|
||||
#include <stdlib.h>
|
||||
#include <crtdbg.h>
|
||||
#include "resource.h"
|
||||
#include "..\Library\Rainmeter.h"
|
||||
|
||||
@ -50,6 +53,9 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd
|
||||
WCHAR* WinName = L"Rainmeter control window";
|
||||
HWND hWnd;
|
||||
|
||||
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
|
||||
// _CrtSetBreakAlloc(5055);
|
||||
|
||||
if(!hPrevInstance)
|
||||
{
|
||||
if (!InitApplication(hInstance, WinClass)) return FALSE;
|
||||
|
Reference in New Issue
Block a user