Browse Source

Timeline: Fix null pointer derefrence when copying sequence points.

tags/non-daw-v1.2.0
Jonathan Moore Liles 13 years ago
parent
commit
c0375e614a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      timeline/src/Sequence_Point.C

+ 3
- 1
timeline/src/Sequence_Point.C View File

@@ -25,8 +25,10 @@


Sequence_Point::Sequence_Point ( const Sequence_Point &rhs ) : Sequence_Widget( rhs ) Sequence_Point::Sequence_Point ( const Sequence_Point &rhs ) : Sequence_Widget( rhs )
{ {
if ( _label )
if ( rhs._label )
_label = strdup( rhs._label ); _label = strdup( rhs._label );
else
_label = 0;
} }


Sequence_Point::Sequence_Point ( ) Sequence_Point::Sequence_Point ( )


Loading…
Cancel
Save