I have a function which displays some text on screen
void DisplayText()
{
RECT rct;
rct.left = 250;
rct.right = 500;
rct.top = 150;
rct.bottom = 400;
titleFont->DrawText(NULL,L"Hello world" , -1, &rct, DT_CENTER, D3DCOLOR_ARGB(255, 255, 255, 255));
}
titleFont is of LPD3DXFONT.
If I run application with above code, its memory usage keeps on increasing (I think it is memory leak)
However,If I comment just one line from code which contains call to DrawText, keeping remaining code as it is. Its memory usage remains constant. (no memory leak)
What could be causing this problem?
Thanks in advance.