iso, zip: fixed memory leak in destructor
Free the "context" pointer in the method archive_plugin.close().
This commit is contained in:
parent
3411f6cffd
commit
9179f108a5
1
NEWS
1
NEWS
|
@ -1,6 +1,7 @@
|
||||||
ver 0.15.7 (2009/??/??)
|
ver 0.15.7 (2009/??/??)
|
||||||
* archive:
|
* archive:
|
||||||
- close archive when stream is closed
|
- close archive when stream is closed
|
||||||
|
- iso, zip: fixed memory leak in destructor
|
||||||
* input:
|
* input:
|
||||||
- file: don't fall back to parent directory
|
- file: don't fall back to parent directory
|
||||||
- archive: fixed memory leak in error handler
|
- archive: fixed memory leak in error handler
|
||||||
|
|
|
@ -132,7 +132,8 @@ iso_close(struct archive_file *file)
|
||||||
}
|
}
|
||||||
//close archive
|
//close archive
|
||||||
iso9660_close(context->iso);
|
iso9660_close(context->iso);
|
||||||
context->iso = NULL;
|
|
||||||
|
g_free(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* single archive handling */
|
/* single archive handling */
|
||||||
|
|
|
@ -99,7 +99,8 @@ zip_close(struct archive_file *file)
|
||||||
}
|
}
|
||||||
//close archive
|
//close archive
|
||||||
zzip_dir_close (context->dir);
|
zzip_dir_close (context->dir);
|
||||||
context->dir = NULL;
|
|
||||||
|
g_free(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* single archive handling */
|
/* single archive handling */
|
||||||
|
|
Loading…
Reference in New Issue