﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12	"XWorkplace monitor widget needs to call ""WinDestroyPointer"" on the hptrCpuTemp icon pointer handle"	erdmann		"XWorkplace 1.0.17:

I am implementing a widget for AMD based CPUs to report temperature (ACPI on my system does not provide the necessary functionality, therefore the monitor widget does not work for me).
I took the ""monitor widget"" source code as a base. I am therefore using the same code to load the CPU Temperature icon/pointer to display from the XFLDR DLL resources.
However, the ""monitor widget"" does not destroy the pointer when ""WgtDestroy"" is called (on widget window destruction). That it turn leads to hang problems in my widget as it is using the same resource.

Suggest to add this code to ""WgtDestroy"":

{{{
if (pPrivate->hptrCpuTemp)
   WinDestroyPointer(pPrivate->hptrCpuTemp)
}}}

as is done for the other pointers that it loads (hptrAC and hptrBattery).
Of course, a current workaround for my widget is to copy the icon and add it as a resource to my own Widget DLL.
"	defect	new	major		component1				
