added comments on why no CFRelease is used

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-05-21 08:27:01 +00:00
parent c00e451f86
commit 4e690da6eb

View File

@@ -277,6 +277,8 @@ void wxDataObject::AddToPasteboard( void * pb, int itemID )
CFRelease(url);
PasteboardPutItemFlavor( pasteboard, (PasteboardItemID) counter,
(CFStringRef) thisFormat.GetFormatId() , data, kPasteboardFlavorNoFlags);
// don't release do CFRelease( data ), it's not documented but the samples don't release the data for non promised entries
// also when running with the _debug version of carbon drag and drop is showing errors otherwise
counter++;
fname = strtok (NULL,"\n");
}
@@ -291,6 +293,8 @@ void wxDataObject::AddToPasteboard( void * pb, int itemID )
else
PasteboardPutItemFlavor( pasteboard, (PasteboardItemID) itemID,
(CFStringRef) thisFormat.GetFormatId() , data, kPasteboardFlavorNoFlags);
// don't release do CFRelease( data ), it's not documented but the samples don't release the data for non promised entries
// also when running with the _debug version of carbon drag and drop is showing errors otherwise
}
free( buf );
}