We are supposed to delete the palette object with the DeleteObject
function.
diff --git a/windows/clipboard.c b/windows/clipboard.c
index 18c7ddf..7122167 100644
--- a/windows/clipboard.c
+++ b/windows/clipboard.c
@@ -181,7 +181,8 @@
void CLIPBOARD_DeleteRecord(LPWINE_CLIPFORMAT lpFormat, BOOL bChange)
{
if( (lpFormat->wFormatID >= CF_GDIOBJFIRST &&
- lpFormat->wFormatID <= CF_GDIOBJLAST) || lpFormat->wFormatID == CF_BITMAP )
+ lpFormat->wFormatID <= CF_GDIOBJLAST) || lpFormat->wFormatID == CF_BITMAP
+ || lpFormat->wFormatID == CF_PALETTE)
{
if (lpFormat->hData32)
DeleteObject(lpFormat->hData32);