comparison os2/dw.c @ 562:1b709b879181

Minor fix to _free_window_memory() to not incorrectly try to free box items from desktop windows which have no box, the box is on the client.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 21 Apr 2004 06:14:48 +0000
parents c0a708e2cba3
children f6de197ecbe9
comparison
equal deleted inserted replaced
561:c0a708e2cba3 562:1b709b879181
376 /* If this window has an associate bitmap destroy it. */ 376 /* If this window has an associate bitmap destroy it. */
377 _free_bitmap(handle); 377 _free_bitmap(handle);
378 378
379 WinQueryClassName(handle, 99, tmpbuf); 379 WinQueryClassName(handle, 99, tmpbuf);
380 380
381 if(strncmp(tmpbuf, "#1", 3)==0) 381 if(strncmp(tmpbuf, "#1", 3)==0 && !WinWindowFromID(handle, FID_CLIENT))
382 { 382 {
383 Box *box = (Box *)ptr; 383 Box *box = (Box *)ptr;
384 384
385 if(box->count && box->items) 385 if(box->count && box->items)
386 free(box->items); 386 free(box->items);