Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fixed a csjon-related leak
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+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; |
|
|
} |
|
|