Ignore:
Timestamp:
Jun 9, 2001, 4:50:26 PM (24 years ago)
Author:
sandervl
Message:

reference count (window + class objects) rewrite

File:
1 edited

Legend:

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

    r5496 r5935  
    1 /* $Id: icontitle.cpp,v 1.6 2001-04-12 14:04:32 sandervl Exp $ */
     1/* $Id: icontitle.cpp,v 1.7 2001-06-09 14:50:17 sandervl Exp $ */
    22/*
    33 * Icontitle window class.
     
    5252                                  WS_CLIPSIBLINGS, 0, 0, 1, 1,
    5353                                  parent->getWindowHandle(),0,parent->getInstance(), NULL );
     54
    5455    win32wnd = Win32BaseWindow::GetWindowFromHandle(hWnd);
    5556    if (win32wnd)
     
    5859        win32wnd->setStyle(win32wnd->getStyle() & ~(WS_CAPTION | WS_BORDER));
    5960        if (parent->getStyle() & WS_DISABLED ) win32wnd->setStyle(win32wnd->getStyle() | WS_DISABLED);
     61        RELEASE_WNDOBJ(win32wnd);
    6062        return hWnd;
    6163    }
     
    245247             }
    246248    }
    247 
    248249    retvalue = DefWindowProcA( hWnd, msg, wParam, lParam );
    249250END:
     251    if(wnd) RELEASE_WNDOBJ(wnd);
    250252    return retvalue;
    251253}
Note: See TracChangeset for help on using the changeset viewer.