Closed memory leak with acquiration of drive
This commit is contained in:
parent
5d182c8a36
commit
e41e6c2040
@ -363,6 +363,8 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr,
|
||||
volset= isoburn_get_attached_image(drive);
|
||||
if(volset != NULL) {
|
||||
ret= iso_image_set_truncate_mode(volset, 1, xorriso->file_name_limit);
|
||||
iso_image_unref(volset);
|
||||
volset= NULL;
|
||||
Xorriso_process_msg_queues(xorriso,0);
|
||||
if(ret < 0)
|
||||
{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);
|
||||
if(volset != NULL) { /* The image object is already created */
|
||||
iso_image_unref(volset);
|
||||
volset= NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2015.09.28.141723"
|
||||
#define Xorriso_timestamP "2015.10.15.170642"
|
||||
|
Loading…
Reference in New Issue
Block a user