mirror of https://github.com/vitalif/grive2
proper fix for (#98: missing reference count for Json::Get() )
parent
271e4d7ed8
commit
3acd25cb55
|
@ -186,7 +186,7 @@ bool Json::Get( const std::string& key, Json& json ) const
|
||||||
struct json_object *j = ::json_object_object_get( m_json, key.c_str() ) ;
|
struct json_object *j = ::json_object_object_get( m_json, key.c_str() ) ;
|
||||||
if ( j != 0 )
|
if ( j != 0 )
|
||||||
{
|
{
|
||||||
Json tmp( j, NotOwned() ) ;
|
Json tmp( j ) ;
|
||||||
json.Swap( tmp ) ;
|
json.Swap( tmp ) ;
|
||||||
return true ;
|
return true ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue