Skip to content

Commit b14c8c1

Browse files
authored
Merge pull request open-source-parsers#502 from open-source-parsers/null-object
Allow dtor for nullSingleton
2 parents 48d2a69 + b299d35 commit b14c8c1

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)