Closed memory leak with acquiration of drive

This commit is contained in:
Thomas Schmitt 2015-10-15 17:05:07 +00:00
parent 32d2817e15
commit 526494e8ce
2 changed files with 4 additions and 1 deletions

View File

@ -363,6 +363,8 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr,
volset= isoburn_get_attached_image(drive); volset= isoburn_get_attached_image(drive);
if(volset != NULL) { if(volset != NULL) {
ret= iso_image_set_truncate_mode(volset, 1, xorriso->file_name_limit); ret= iso_image_set_truncate_mode(volset, 1, xorriso->file_name_limit);
iso_image_unref(volset);
volset= NULL;
Xorriso_process_msg_queues(xorriso,0); Xorriso_process_msg_queues(xorriso,0);
if(ret < 0) if(ret < 0)
{ret= 0; goto ex;} {ret= 0; goto ex;}
@ -410,6 +412,7 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr,
volset= isoburn_get_attached_image(drive); volset= isoburn_get_attached_image(drive);
if(volset != NULL) { /* The image object is already created */ if(volset != NULL) { /* The image object is already created */
iso_image_unref(volset); iso_image_unref(volset);
volset= NULL;
} }
} }

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.09.28.141723" #define Xorriso_timestamP "2015.10.15.170642"