# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1050059526 0 # Node ID 4029240b5e63612eab41352215ee328a6e1f9210 # Parent 503d1ac958bbc94e7a08ccc43b2233c5e619ad73 Fixed a leak of the container's column data when destroying container controls. diff -r 503d1ac958bb -r 4029240b5e63 os2/dw.c --- a/os2/dw.c Fri Apr 11 10:44:59 2003 +0000 +++ b/os2/dw.c Fri Apr 11 11:12:06 2003 +0000 @@ -318,7 +318,16 @@ free(data); } else if(strncmp(tmpbuf, "#37", 4)==0) + { dw_container_clear(handle, FALSE); + if(wd && dw_window_get_data(handle, "_dw_container")) + { + void *oldflags = wd->data; + + wd->data = NULL; + free(oldflags); + } + } if(wd->oldproc) WinSubclassWindow(handle, wd->oldproc);