Permalink
Browse files

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

  • Loading branch information...
1 parent 271e4d7 commit 3acd25cb553ad2a9950a47f98bc388fa21350b8e @nestal nestal committed Jul 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libgrive/src/protocol/Json.cc
@@ -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 ;
}

0 comments on commit 3acd25c

Please sign in to comment.