]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/bitmap.cpp
don't call release() on non-owned buffer in wchar_t build (closes #10964); copy utf8_...
[wxWidgets.git] / src / osx / core / bitmap.cpp
index 5b45d7bdaa80a4d4d7eb7380adc85dc1344b706c..15e8a233f0d95615dca87e81808b0e551ec0cbcb 100644 (file)
@@ -496,8 +496,13 @@ IconRef wxBitmapRefData::GetIconRef()
                      }
                 }
                 HUnlock( data );
+
                 OSStatus err = SetIconFamilyData( iconFamily, dataType , data );
-                wxASSERT_MSG( err == noErr , wxT("Error when adding bitmap") );
+                if ( err != noErr )
+                {
+                    wxFAIL_MSG("Error when adding bitmap");
+                }
+
                 DisposeHandle( data );
             }
             else