Ignore:
Timestamp:
11/13/2008 12:32:28 PM (4 years ago)
Author:
lowjoel
Message:

Added a self-scoping Handle class; fixed a few memory leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Installer/Bootstrapper/Main.cpp

    r542 r543  
    176176 
    177177std::map<HWND, MainWindow::WndProcData> MainWindow::OldWndProcs; 
     178MainWindow::~MainWindow() 
     179{ 
     180    DestroyWindow(hWndStatusLbl); 
     181    DestroyWindow(hWndProgressBar); 
     182    DestroyWindow(hWndCancelBtn); 
     183    DestroyWindow(hWndPanel); 
     184    DestroyWindow(hWnd); 
     185} 
     186 
    178187bool MainWindow::Create() 
    179188{ 
     
    286295} 
    287296 
    288 LRESULT MainWindow::WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, 
     297LRESULT MainWindow::WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM /*lParam*/, 
    289298    bool& handled) 
    290299{ 
     
    297306        break; 
    298307    } 
     308 
     309    return 0; 
    299310} 
    300311 
Note: See TracChangeset for help on using the changeset viewer.