From 55211af76164fe6c39249c14be47363d35a4db0f Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Fri, 25 Jan 2019 21:45:01 +0100 Subject: add memory allocation functions --- widgetfactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgetfactory.cpp') diff --git a/widgetfactory.cpp b/widgetfactory.cpp index d973aac..e22f4d9 100644 --- a/widgetfactory.cpp +++ b/widgetfactory.cpp @@ -65,7 +65,7 @@ handleCommand(void *closure, HWND window, WORD notificationcode, WORD sourceid, ALF_SetWidgetText(window, ID_LBL6, text); - HeapFree(GetProcessHeap(), 0, text); + ALF_Free(text); } if (control != NULL && sourceid == ID_B4) { HWND combo = ALF_WidgetHwndById(window, ID_COMBO2); -- cgit v1.2.3