}
heap_free(text);
+#ifdef __REACTOS__
+ text = NULL;
+#endif
}
#ifdef __REACTOS__
if (cdrf == CDRF_NOTIFYPOSTPAINT)
BUTTON_SendCustomDraw(infoPtr, hDC, CDDS_POSTPAINT, &bgRect);
cleanup:
+ if (text) heap_free(text);
#endif
if (created_font) DeleteObject(font);
if (hPrevFont) SelectObject(hDC, hPrevFont);