mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-04-02 17:50:51 +02:00
Merge pull request #221 from btolfa/forgotten-virtual-dtor
Added forgotten virtual dtor for `Json::CharReader::Factory`. (Without this, the destructor of the derived `CharReaderBuilder` would not be called, which is a small memory leak.)
This commit is contained in:
commit
cbe7e7c9cb
@ -270,6 +270,7 @@ public:
|
||||
|
||||
class Factory {
|
||||
public:
|
||||
virtual ~Factory() {}
|
||||
/** \brief Allocate a CharReader via operator new().
|
||||
* \throw std::exception if something goes wrong (e.g. invalid settings)
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user