Skip to content

Commit b299d35

Browse files
committed
Allow dtor for nullSingleton
re open-source-parsers#488 and open-source-parsers#490
1 parent 48d2a69 commit b299d35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib_json/json_value.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ namespace Json {
3939
// static
4040
Value const& Value::nullSingleton()
4141
{
42-
static Value const* nullStatic = new Value;
43-
return *nullStatic;
42+
static Value const nullStatic;
43+
return nullStatic;
4444
}
4545

4646
// for backwards compatibility, we'll leave these global references around, but DO NOT

0 commit comments

Comments
 (0)