]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dc.cpp
clang fix, fixes #12332
[wxWidgets.git] / src / os2 / dc.cpp
index 228e231c5f0068a3ab8705383288e05cc8858fe6..ab1b0ad71813eed161dfbc606298aaa2b84957c0 100644 (file)
@@ -1579,6 +1579,7 @@ void wxPMDCImpl::DoDrawBitmap(
                 {
                     vError = ::WinGetLastError(vHabmain);
                     sError = wxPMErrorToStr(vError);
+                    delete [] pucBits;
                     return;
                 }
                 if ((lScans = ::GpiQueryBitmapBits( hPS
@@ -1590,6 +1591,7 @@ void wxPMDCImpl::DoDrawBitmap(
                 {
                     vError = ::WinGetLastError(vHabmain);
                     sError = wxPMErrorToStr(vError);
+                    delete [] pucBits;
                     return;
                 }
                 unsigned char           cOldRedFore   = (unsigned char)(lOldForeGround >> 16);