size_t count = wxImage::GetImageCount( file, type );
size_t i;
wxImage image;
- wxIcon tmp;
for( i = 0; i < count; ++i )
{
continue;
}
- tmp.CopyFromBitmap( wxBitmap( image ) );
- AddIcon( tmp );
+ wxIcon* tmp = new wxIcon();
+ tmp->CopyFromBitmap( wxBitmap( image ) );
+ AddIcon( *tmp );
+ delete tmp;
}
}