comparison os2/dw.c @ 169:b2211123274e

Fixed a minor handl leak when destroying conboboxes... the listbox part would not get destroyed.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 30 Nov 2002 13:15:43 +0000
parents 0b3debaa9c6c
children ee6858b7d1c3
comparison
equal deleted inserted replaced
168:627e531ca530 169:b2211123274e
232 232
233 dw_signal_disconnect_by_window(handle); 233 dw_signal_disconnect_by_window(handle);
234 234
235 if(ptr) 235 if(ptr)
236 { 236 {
237 WindowData *wd = (WindowData *)ptr;
238
239 if(wd->oldproc)
240 WinSubclassWindow(handle, wd->oldproc);
241
237 dw_window_set_data(handle, NULL, NULL); 242 dw_window_set_data(handle, NULL, NULL);
238 WinSetWindowPtr(handle, QWP_USER, 0); 243 WinSetWindowPtr(handle, QWP_USER, 0);
239 free(ptr); 244 free(ptr);
240 } 245 }
241 246