Fix leak with SharedBitmaps allocated by new[]