Closed a small memory leak with drive inquiry

This commit is contained in:
Thomas Schmitt 2009-09-05 11:50:09 +00:00
parent 970ae46cfa
commit f6d6dcfad0
2 changed files with 7 additions and 3 deletions

View File

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

View File

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