Skip to content

Commit c93682a

Browse files
committed
Merge branch '2.0' into develop
2 parents 8f1d1f6 + 2c9c5a5 commit c93682a

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

c_src/build_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ `uname -s` = 'SunOS' -a "${POSIX_SHELL}" != "true" ]; then
88
fi
99
unset POSIX_SHELL # clear it so if we invoke other scripts, they run as ksh as well
1010

11-
LEVELDB_VSN="develop"
11+
LEVELDB_VSN="2.0.0"
1212

1313
SNAPPY_VSN="1.0.4"
1414

c_src/refobjects.cc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,10 @@ ItrObject::~ItrObject()
548548
ReleaseReuseMove();
549549

550550
if (NULL!=itr_ref_env)
551+
{
551552
enif_free_env(itr_ref_env);
553+
itr_ref_env=NULL;
554+
} // if
552555

553556
if (NULL!=m_DbPtr.get())
554557
m_DbPtr->RemoveReference(this);
@@ -568,14 +571,6 @@ ItrObject::Shutdown()
568571
// release when move object destructs)
569572
ReleaseReuseMove();
570573

571-
// only need this to create new Move objects,
572-
// get rid of it early
573-
if (NULL!=itr_ref_env)
574-
{
575-
enif_free_env(itr_ref_env);
576-
itr_ref_env=NULL;
577-
} // if
578-
579574
// ItrObject and m_Iter each hold pointers to other, release ours
580575
m_Iter.assign(NULL);
581576

0 commit comments

Comments
 (0)