InputStream: add virtual destructor
Replaces the method Close().
This commit is contained in:
@@ -132,7 +132,7 @@ int main(int argc, char **argv)
|
||||
is = InputStream::OpenReady(argv[1], mutex, cond, error);
|
||||
if (is != NULL) {
|
||||
ret = dump_input_stream(is);
|
||||
is->Close();
|
||||
delete is;
|
||||
} else {
|
||||
if (error.IsDefined())
|
||||
LogError(error);
|
||||
|
Reference in New Issue
Block a user