Skip to content

Commit

Permalink
Merge branch '2.0' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmorrow committed Sep 4, 2014
2 parents 8f1d1f6 + 2c9c5a5 commit c93682a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion c_src/build_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ `uname -s` = 'SunOS' -a "${POSIX_SHELL}" != "true" ]; then
fi
unset POSIX_SHELL # clear it so if we invoke other scripts, they run as ksh as well

LEVELDB_VSN="develop"
LEVELDB_VSN="2.0.0"

SNAPPY_VSN="1.0.4"

Expand Down
11 changes: 3 additions & 8 deletions c_src/refobjects.cc
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,10 @@ ItrObject::~ItrObject()
ReleaseReuseMove();

if (NULL!=itr_ref_env)
{
enif_free_env(itr_ref_env);
itr_ref_env=NULL;
} // if

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

// only need this to create new Move objects,
// get rid of it early
if (NULL!=itr_ref_env)
{
enif_free_env(itr_ref_env);
itr_ref_env=NULL;
} // if

// ItrObject and m_Iter each hold pointers to other, release ours
m_Iter.assign(NULL);

Expand Down

0 comments on commit c93682a

Please sign in to comment.