changeset 548:0369176130af

Destroy the icon HPOINTER when destroying bitmap buttons using icons.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 04 Apr 2004 18:47:21 +0000
parents 291f3eae2c25
children b744c2b86df8
files os2/dw.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Sun Apr 04 18:45:40 2004 +0000
+++ b/os2/dw.c	Sun Apr 04 18:47:21 2004 +0000
@@ -306,6 +306,10 @@
 	HDC hdc = (HDC)dw_window_get_data(handle, "_dw_hdc");
 	HPIXMAP pixmap = (HPIXMAP)dw_window_get_data(handle, "_dw_hpixmap");
 	HPIXMAP disable = (HPIXMAP)dw_window_get_data(handle, "_dw_hpixmap_disabled");
+	HPOINTER icon = (HPOINTER)dw_window_get_data(handle, "_dw_button_icon");
+
+	if(icon)
+		WinDestroyPointer(icon);
 
 	if(pixmap)
 		dw_pixmap_destroy(pixmap);