changeset 509:a9cfbc5ad01e

MDI frames have no data saved on their titlebared window handles, so check that the memory is non-NULL before trying to free the box information from the MDI frames.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 08 Mar 2004 03:46:17 +0000
parents 078a40ba2e41
children 710f82598210
files win/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Wed Feb 18 10:26:49 2004 +0000
+++ b/win/dw.c	Mon Mar 08 03:46:17 2004 +0000
@@ -362,7 +362,7 @@
 	{
 		Box *box = (Box *)thiscinfo;
 
-		if(box->count && box->items)
+		if(box && box->count && box->items)
 			free(box->items);
 	}
 	else if(strnicmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0)