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:
Christopher Dunn 2015-03-15 13:49:24 -05:00
commit cbe7e7c9cb

View File

@ -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)
*/