Changeset 116


Ignore:
Timestamp:
Mar 17, 2008, 1:14:12 AM (10 years ago)
Author:
Sam Hocevar
Message:
  • Only delete objects in ~jwindow that were really allocated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/jwindow.cpp

    r113 r116  
    383383    _moveable = true;
    384384    // property.flags = JWINDOW_NOAUTOHIDE_FLAG;
    385     inm = new input_manager (this, NULL);
     385    inm = new input_manager(this, NULL);
     386    reconfigure();
     387
    386388    screen = NULL;
     389    next = NULL;
    387390    _name = NULL;
    388391    wm->add_window(this);
     
    425428    // Keep this from getting destroyed when image list is cleared
    426429    image_list.unlink(screen);
    427 
    428430    inm->screen = screen;
     431
    429432    next = NULL;
    430433
     
    443446    wm->remove_window(this);
    444447    local_close();
    445     delete screen;
     448    if(screen)
     449        delete screen;
    446450    delete inm;
    447451    if(_name)
Note: See TracChangeset for help on using the changeset viewer.