]> git.saurik.com Git - wxWidgets.git/commitdiff
Icon bug
authorDavid Webster <Dave.Webster@bhmi.com>
Fri, 10 Mar 2000 23:12:21 +0000 (23:12 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Fri, 10 Mar 2000 23:12:21 +0000 (23:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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