[EMAIL PROTECTED] schreef: > Got memory free twice. > > Index: track.c > =================================================================== > --- track.c (revision 1523) > +++ track.c (working copy) > @@ -160,6 +160,7 @@ > > sound_FreeTrack( psTrack ); > free( psTrack ); > + psTrack=NULL; > } > > //* Please tell me how making this pointer NULL after free()ing it will help prevent a double free ?
Considering that psTrack is _not_ used outside this function, nor is it used inside this function anymore (since it is the last statement in it). -- Giel
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev