Closed a small memory leak with drive inquiry

ZeroSevenTwo
Thomas Schmitt 13 years ago
parent 970ae46cfa
commit f6d6dcfad0
  1. 8
      cdrskin/cdrskin.c
  2. 2
      cdrskin/cdrskin_timestamp.h

@ -3647,10 +3647,14 @@ int Cdrskin_determine_media_caps(struct CdrskiN *skin, int flag)
skin->media_is_overwriteable= skin->media_does_multi= 0;
ret= burn_disc_get_multi_caps(skin->grabbed_drive,BURN_WRITE_NONE,&caps,0);
if(ret<=0)
return(0);
goto ex;
skin->media_is_overwriteable= !!caps->start_adr;
skin->media_does_multi= !!caps->multi_session;
return(1);
ret= 1;
ex:;
if(caps != NULL)
burn_disc_free_multi_caps(&caps);
return(ret);
#else /* Cdrskin_libburn_has_get_multi_capS */
return(-1);
#endif

@ -1 +1 @@
#define Cdrskin_timestamP "2009.09.05.114326"
#define Cdrskin_timestamP "2009.09.05.115112"

Loading…
Cancel
Save