]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/icon.cpp
fix for assert when setting tooltip for a readonly combo
[wxWidgets.git] / src / os2 / icon.cpp
index 9168126aeeaa8f19fc42903e90c7e8c359c02450..26f744c91f4633cc6b6c12530076354529e68067 100644 (file)
@@ -94,11 +94,11 @@ bool wxIcon::LoadFile(
 , int                               nDesiredHeight
 )
 {
-    wxGDIImageHandler*              pHandler = FindHandler(lType);
     HPS                             hPs = NULLHANDLE;
 
     UnRef();
-    m_refData = new wxIconRefData;
+
+    wxGDIImageHandler*              pHandler = FindHandler(lType);
 
     if (pHandler)
         return(pHandler->Load( this