changeset 965:2b1b9b995748

Fixed a crash in _free_window_memory() when attempting to free memory on the scrollbox client area on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 02 May 2011 17:51:35 +0000
parents 6c6b5bbd3a26
children d90222530bb9
files os2/dw.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Mon May 02 17:43:06 2011 +0000
+++ b/os2/dw.c	Mon May 02 17:51:35 2011 +0000
@@ -4303,6 +4303,7 @@
                     0,0,2000,1000, hwndframe, HWND_TOP, FID_HORZSCROLL, NULL, NULL);
     client = WinCreateWindow(hwndframe, WC_FRAME, "", WS_VISIBLE | WS_CLIPCHILDREN,
                              0,0,2000,1000, NULLHANDLE, HWND_TOP, FID_CLIENT, NULL, NULL);
+    WinSetWindowPtr(client, QWP_USER, calloc(sizeof(Box), 1));
     WinSetParent(tmpbox, client, FALSE);
     WinSetWindowPtr(hwndframe, QWP_USER, blah);
     dw_window_set_data(hwndframe, "_dw_resizebox", (void *)tmpbox);