+ size_t sz = data->GetDataSize( array[ i ] );
+ void* buf = malloc( sz + 1 );
+ if ( buf != NULL )
+ {
+ // empty the buffer because in some case GetDataHere does not fill buf
+ memset( buf, 0, sz + 1 );
+ data->GetDataHere( array[ i ], buf );
+ OSType mactype = 0;
+ switch ( array[i].GetType() )
+ {
+ case wxDF_TEXT:
+ case wxDF_OEMTEXT:
+ mactype = kScrapFlavorTypeText;
+ sz -= 1;
+ break;