different solution to debug messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -277,8 +277,7 @@ 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
|
||||
CFRelease( data );
|
||||
counter++;
|
||||
fname = strtok (NULL,"\n");
|
||||
}
|
||||
@@ -293,8 +292,7 @@ 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
|
||||
CFRelease( data );
|
||||
}
|
||||
free( buf );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user