Browse Source

Don't leak memory in handling of unjournaled state.

tags/non-daw-v1.1.0
Jonathan Moore Liles 16 years ago
parent
commit
1917e9295c
2 changed files with 5 additions and 0 deletions
  1. +2
    -0
      Timeline/Log_Entry.C
  2. +3
    -0
      Timeline/Loggable.C

+ 2
- 0
Timeline/Log_Entry.C View File

@@ -116,6 +116,8 @@ Log_Entry::print ( void ) const

strcpy( r2, r );

free( r );

return r2;
}



+ 3
- 0
Timeline/Loggable.C View File

@@ -697,8 +697,11 @@ Loggable::record_unjournaled ( void ) const
if ( e->size() )
_loggables[ _id ].unjournaled_state = e;
else
{
/* don't waste space on loggables with no unjournaled properties */
_loggables[ _id ].unjournaled_state = NULL;
delete e;
}
}

/** Log object destruction. *Must* be called at the beginning of the


Loading…
Cancel
Save