Ignore:
Timestamp:
Feb 16, 2004, 1:00:25 PM (22 years ago)
Author:
sandervl
Message:

EndPaint; fixed region handle leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/dc.cpp

    r10379 r10461  
    1 /* $Id: dc.cpp,v 1.123 2004-01-11 12:03:13 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.124 2004-02-16 12:00:25 sandervl Exp $ */
    22
    33/*
     
    611611   erased = wnd->MsgEraseBackGround (hdc);
    612612
     613   //hrgnUpdate is destroyed in DeleteHDC
    613614   DeleteHDC (hdc);
    614615   WinReleasePS (hps);
     
    814815    {
    815816        //restore previous visible and clip regions
    816         pHps->hrgnWin32Clip = NULLHANDLE;
    817         pHps->hrgnWinVis    = NULLHANDLE;
     817        if(pHps->hrgnWinVis) {
     818            GreDestroyRegion(pHps->hps, pHps->hrgnWinVis);
     819            pHps->hrgnWinVis = NULLHANDLE;
     820        }
     821        if(pHps->hrgnWin32Clip) {
     822            GreDestroyRegion(pHps->hps, pHps->hrgnWin32Clip);
     823            pHps->hrgnWin32Clip = NULLHANDLE;
     824        }
    818825
    819826        GdiSetVisRgn(pHps, wnd->GetVisRegion());
Note: See TracChangeset for help on using the changeset viewer.