proper fix for (#98: missing reference count for Json::Get() )

pull/40/head
Nestal Wan 2012-07-23 15:43:11 +08:00
parent 271e4d7ed8
commit 3acd25cb55
1 changed files with 1 additions and 1 deletions

View File

@ -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() ) ;
if ( j != 0 )
{
Json tmp( j, NotOwned() ) ;
Json tmp( j ) ;
json.Swap( tmp ) ;
return true ;
}