Browse Source

fix cleanup

cxgeorge 24 years ago
parent
commit
b991782958
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/wdxdisplay/wdxGraphicsWindow.cxx

+ 1 - 1
panda/src/wdxdisplay/wdxGraphicsWindow.cxx

@@ -554,6 +554,7 @@ wdxGraphicsWindow(GraphicsPipe* pipe, const
 //  Description:
 ////////////////////////////////////////////////////////////////////
 wdxGraphicsWindow::~wdxGraphicsWindow(void) {
+    ReleaseDC(_mwindow,_hdc);
     AtExitFn();
 }
 
@@ -780,7 +781,6 @@ dx_setup() {
 
     FreeLibrary(DDHinst);    //undo LoadLib above, decrement ddrawl.dll refcnt (after DDrawCreate, since dont want to unload/reload)
 
-
     DDDEVICEIDENTIFIER2 dddi;
     pDD->GetDeviceIdentifier(&dddi,0x0);