Mercurial > dwindows
comparison win/dw.c @ 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 |
comparison
equal
deleted
inserted
replaced
508:078a40ba2e41 | 509:a9cfbc5ad01e |
---|---|
360 } | 360 } |
361 else if(strnicmp(tmpbuf, FRAMECLASSNAME, strlen(FRAMECLASSNAME)+1)==0) | 361 else if(strnicmp(tmpbuf, FRAMECLASSNAME, strlen(FRAMECLASSNAME)+1)==0) |
362 { | 362 { |
363 Box *box = (Box *)thiscinfo; | 363 Box *box = (Box *)thiscinfo; |
364 | 364 |
365 if(box->count && box->items) | 365 if(box && box->count && box->items) |
366 free(box->items); | 366 free(box->items); |
367 } | 367 } |
368 else if(strnicmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) | 368 else if(strnicmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) |
369 { | 369 { |
370 void *data = dw_window_get_data(handle, "_dw_percent"); | 370 void *data = dw_window_get_data(handle, "_dw_percent"); |