rem: W_Screen	*scr = WMWidgetScreen(panel->win);  if (panel == scr->sharedColorPanel) { WMWidgetScreen(panel->win)->sharedColorPanel = NULL; } WMRemoveNotificationObserver(panel);	 WMUnmapWidget(panel->win); WMDestroyWidget(panel->win); if (panel->wheelMtrx) wheelDestroyMatrix(panel->wheelMtrx); if (panel->wheelImg) XFreePixmap(scr->display, panel->wheelImg); if (panel->selectionImg) XFreePixmap(scr->display, panel->selectionImg); if (panel->selectionBackImg) XFreePixmap(scr->display, panel->selectionBackImg); if (panel->customPaletteImg) RDestroyImage(panel->customPaletteImg); if (panel->lastBrowseDir) free(panel->lastBrowseDir); if (panel->configurationPath) free(panel->configurationPath);  free(panel);
add: W_Screen    *scr = WMWidgetScreen(panel->win);  if (panel == scr->sharedColorPanel) { WMWidgetScreen(panel->win)->sharedColorPanel = NULL; } WMRemoveNotificationObserver(panel); WMUnmapWidget(panel->win); WMDestroyWidget(panel->win); if (panel->font8) WMReleaseFont(panel->font8); if (panel->font12) WMReleaseFont(panel->font12); if (panel->magnifyGlass->pixmap) XFreePixmap(scr->display, panel->magnifyGlass->pixmap); if (panel->wheelMtrx) wheelDestroyMatrix(panel->wheelMtrx); if (panel->wheelImg) XFreePixmap(scr->display, panel->wheelImg); if (panel->selectionImg) XFreePixmap(scr->display, panel->selectionImg); if (panel->selectionBackImg) XFreePixmap(scr->display, panel->selectionBackImg); if (panel->customPaletteImg) RDestroyImage(panel->customPaletteImg); if (panel->lastBrowseDir) free(panel->lastBrowseDir); if (panel->configurationPath) free(panel->configurationPath);  free(panel);
context: WMFreeColorPanel(WMColorPanel *panel){	W_Screen	*scr = WMWidgetScreen(panel->win);	if (panel == scr->sharedColorPanel) {		WMWidgetScreen(panel->win)->sharedColorPanel = NULL;	}	WMRemoveNotificationObserver(panel);	/* XXX */	WMUnmapWidget(panel->win);	WMDestroyWidget(panel->win);	if (panel->wheelMtrx)		wheelDestroyMatrix(panel->wheelMtrx);	if (panel->wheelImg)		XFreePixmap(scr->display, panel->wheelImg);	if (panel->selectionImg)		XFreePixmap(scr->display, panel->selectionImg);	if (panel->selectionBackImg)		XFreePixmap(scr->display, panel->selectionBackImg);	if (panel->customPaletteImg)		RDestroyImage(panel->customPaletteImg);	if (panel->lastBrowseDir)		free(panel->lastBrowseDir);	if (panel->configurationPath)		free(panel->configurationPath);	free(panel);}