OSDN Git Service

Remove unneeded calls of DeleteObject()
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 25 Jun 2016 11:21:42 +0000 (20:21 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 25 Jun 2016 11:21:42 +0000 (20:21 +0900)
Externals/crystaledit/editlib/ccrystaltextview.cpp
Src/Common/BCMenu.cpp

index 4aca010..9b90e42 100644 (file)
@@ -1421,7 +1421,6 @@ void CCrystalTextView::InvalidateScreenRect(bool bInvalidateView)
 {
   if (m_pCacheBitmap != NULL)
     {
-      m_pCacheBitmap->DeleteObject ();
       delete m_pCacheBitmap;
       m_pCacheBitmap = NULL;
     }
@@ -2387,7 +2386,6 @@ ResetView ()
     {
       if (m_apFonts[I] != NULL)
         {
-          m_apFonts[I]->DeleteObject ();
           delete m_apFonts[I];
           m_apFonts[I] = NULL;
         }
@@ -3443,7 +3441,6 @@ OnDestroy ()
     {
       if (m_apFonts[I] != NULL)
         {
-          m_apFonts[I]->DeleteObject ();
           delete m_apFonts[I];
           m_apFonts[I] = NULL;
         }
@@ -4603,7 +4600,6 @@ SetFont (const LOGFONT & lf)
     {
       if (m_apFonts[I] != NULL)
         {
-          m_apFonts[I]->DeleteObject ();
           delete m_apFonts[I];
           m_apFonts[I] = NULL;
         }
index 108ad93..b9c0ec5 100644 (file)
@@ -376,7 +376,6 @@ void BCMenu::DrawItem_Win9xNT2000 (LPDRAWITEMSTRUCT lpDIS)
                                        else
                                                DitherBlt2(pDC,rect.left+2,rect.top+2+dy,m_iconX,m_iconY,
                                                bitmapstandard,0,0,m_clrBack);
-                                       bitmapstandard.DeleteObject();
                                }
                        }
                        else if(selectedflag){