Skip to content
Browse files

Update leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/Na…

…tiveBuffer.java

Proposed fix for Issue # 16. `self` is only cleared when it is free'd. 
  • Loading branch information...
1 parent a8c761e commit c82028c2e3fe0f5f5f6fe779e33e9bd1545e1c96 @rgrzywinski rgrzywinski committed Aug 2, 2012
View
2 leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeBuffer.java
@@ -112,8 +112,8 @@ void release() {
throw new Error("The object has already been deleted.");
} else if( r==0 ) {
NativeBufferJNI.free(self);
+ self = 0;
}
- self = 0;
}
}

0 comments on commit c82028c

Please sign in to comment.
Something went wrong with that request. Please try again.