From b99178295869199fd85fa547fcfea552e6cb6899 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Tue, 10 Jul 2001 03:10:25 +0000 Subject: [PATCH] fix cleanup --- panda/src/wdxdisplay/wdxGraphicsWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/wdxdisplay/wdxGraphicsWindow.cxx b/panda/src/wdxdisplay/wdxGraphicsWindow.cxx index 0f353a614e..7fbb7c8284 100644 --- a/panda/src/wdxdisplay/wdxGraphicsWindow.cxx +++ b/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);