clean up for non-promised data incorrect

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-05-21 07:42:26 +00:00
parent 988c502299
commit c00e451f86

View File

@@ -277,7 +277,6 @@ void wxDataObject::AddToPasteboard( void * pb, int itemID )
CFRelease(url);
PasteboardPutItemFlavor( pasteboard, (PasteboardItemID) counter,
(CFStringRef) thisFormat.GetFormatId() , data, kPasteboardFlavorNoFlags);
CFRelease(data);
counter++;
fname = strtok (NULL,"\n");
}
@@ -292,7 +291,6 @@ void wxDataObject::AddToPasteboard( void * pb, int itemID )
else
PasteboardPutItemFlavor( pasteboard, (PasteboardItemID) itemID,
(CFStringRef) thisFormat.GetFormatId() , data, kPasteboardFlavorNoFlags);
CFRelease(data);
}
free( buf );
}