InputStream: add virtual destructor
Replaces the method Close().
This commit is contained in:
@@ -276,7 +276,7 @@ soundcloud_parse_json(const char *url, yajl_handle hand,
|
||||
done = true;
|
||||
} else {
|
||||
mutex.unlock();
|
||||
input_stream->Close();
|
||||
delete input_stream;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -304,7 +304,7 @@ soundcloud_parse_json(const char *url, yajl_handle hand,
|
||||
}
|
||||
|
||||
mutex.unlock();
|
||||
input_stream->Close();
|
||||
delete input_stream;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user