* ./hurricane/src/hviewer :

- Bug: corrected memory leak in RedrawManager, events weren't freed.
    - Bug: various attributes reordering in constructors.
This commit is contained in:
Jean-Paul Chaput 2009-02-13 16:30:27 +00:00
parent cb3d9cb835
commit c3f4af9cbf
3 changed files with 6 additions and 4 deletions

View File

@ -114,7 +114,7 @@ namespace Hurricane {
inline string _PName ( const string& s ) { return "Hurricane::" + s; } inline string _PName ( const string& s ) { return "Hurricane::" + s; }
template<class Type> template<class Type>
inline Type abs ( const Type& value ) { return (value<0) ? -value : value; } inline Type abs ( const Type& value ) { return (value<0) ? -value : value; }
string demangle ( const char* symbol ); string demangle ( const char* symbol );
inline string demangle ( const type_info& info ) { return demangle(info.name()); } inline string demangle ( const type_info& info ) { return demangle(info.name()); }

View File

@ -329,6 +329,7 @@ namespace Hurricane {
_interrupted = false; _interrupted = false;
} }
#else #else
delete _events.front ();
_events.pop_front (); _events.pop_front ();
#endif #endif
} }
@ -929,8 +930,8 @@ namespace Hurricane {
, _cellChanged (true) , _cellChanged (true)
, _selectionHasChanged (false) , _selectionHasChanged (false)
, _delaySelectionChanged(0) , _delaySelectionChanged(0)
, _enableRedrawInterrupt(false)
, _cellModificated (true) , _cellModificated (true)
, _enableRedrawInterrupt(false)
, _selectors () , _selectors ()
, _commands () , _commands ()
, _redrawRectCount (0) , _redrawRectCount (0)

View File

@ -778,13 +778,14 @@ namespace Hurricane {
inline CellWidget::State::State ( Cell* cell ) inline CellWidget::State::State ( Cell* cell )
: _cell (cell) : _cell (cell)
, _cellWidget (NULL)
, _selection () , _selection ()
, _showBoundaries (true)
, _showSelection (false)
, _queryFilter (~Query::DoTerminalCells) , _queryFilter (~Query::DoTerminalCells)
, _startLevel (0) , _startLevel (0)
, _stopLevel (99) , _stopLevel (99)
, _rubberShape (CellWidget::Steiner) , _rubberShape (CellWidget::Steiner)
, _showBoundaries (true)
, _showSelection (false)
, _cumulativeSelection(false) , _cumulativeSelection(false)
, _scaleHistory () , _scaleHistory ()
, _ihistory (0) , _ihistory (0)