Skip to content
Permalink
Browse files

fixed a csjon-related leak

  • Loading branch information
glookka committed Jan 25, 2019
1 parent 0972f56 commit a4e19afee54dafdc04b0da53372dafd8c0d332d6
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/sphinxjson.cpp
@@ -1290,6 +1290,9 @@ JsonBase_c & JsonBase_c::operator = ( JsonBase_c && rhs )
{
if ( this!=&rhs )
{
if ( m_pRoot )
cJSON_Delete(m_pRoot);

m_pRoot = rhs.m_pRoot;
rhs.m_pRoot = nullptr;
}

0 comments on commit a4e19af

Please sign in to comment.