input_stream: added function input_stream_deinit()

All close() implementations must call this method.
This commit is contained in:
Max Kellermann
2010-01-18 09:57:53 +01:00
parent a0a26d3341
commit fb9bd53328
9 changed files with 16 additions and 2 deletions

View File

@@ -182,6 +182,7 @@ bz2_open_stream(struct archive_file *file,
bis->base.seekable = false;
if (!bz2_alloc(bis, error_r)) {
input_stream_deinit(&bis->base);
g_free(bis);
return NULL;
}
@@ -202,6 +203,7 @@ bz2_is_close(struct input_stream *is)
bz2_close(&bis->archive->base);
input_stream_deinit(&bis->base);
g_free(bis);
}

View File

@@ -212,6 +212,9 @@ iso9660_input_close(struct input_stream *is)
g_free(iis->statbuf);
iso9660_archive_close(&iis->archive->base);
input_stream_deinit(&iis->base);
g_free(iis);
}

View File

@@ -171,6 +171,7 @@ zzip_input_close(struct input_stream *is)
zzip_file_close(zis->file);
zzip_archive_close(&zis->archive->base);
input_stream_deinit(&zis->base);
g_free(zis);
}