Allow dtor for nullSingleton

re #488 and #490
This commit is contained in:
Christopher Dunn 2016-07-20 11:31:41 -07:00
parent 48d2a69d47
commit b299d3581f

View File

@ -39,8 +39,8 @@ namespace Json {
// static // static
Value const& Value::nullSingleton() Value const& Value::nullSingleton()
{ {
static Value const* nullStatic = new Value; static Value const nullStatic;
return *nullStatic; return nullStatic;
} }
// for backwards compatibility, we'll leave these global references around, but DO NOT // for backwards compatibility, we'll leave these global references around, but DO NOT