changeset 342:4029240b5e63

Fixed a leak of the container's column data when destroying container controls.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 11 Apr 2003 11:12:06 +0000
parents 503d1ac958bb
children bab5cd8dd93f
files os2/dw.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);