Mercurial > dwindows
comparison os2/dw.c @ 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 | e9a424e641ff |
children | 81fae15885d7 |
comparison
equal
deleted
inserted
replaced
341:503d1ac958bb | 342:4029240b5e63 |
---|---|
316 | 316 |
317 if(data) | 317 if(data) |
318 free(data); | 318 free(data); |
319 } | 319 } |
320 else if(strncmp(tmpbuf, "#37", 4)==0) | 320 else if(strncmp(tmpbuf, "#37", 4)==0) |
321 { | |
321 dw_container_clear(handle, FALSE); | 322 dw_container_clear(handle, FALSE); |
323 if(wd && dw_window_get_data(handle, "_dw_container")) | |
324 { | |
325 void *oldflags = wd->data; | |
326 | |
327 wd->data = NULL; | |
328 free(oldflags); | |
329 } | |
330 } | |
322 | 331 |
323 if(wd->oldproc) | 332 if(wd->oldproc) |
324 WinSubclassWindow(handle, wd->oldproc); | 333 WinSubclassWindow(handle, wd->oldproc); |
325 | 334 |
326 dw_window_set_data(handle, NULL, NULL); | 335 dw_window_set_data(handle, NULL, NULL); |