mariadb/bdb/libdb_java/java_DbLock.c

31 lines
732 B
C
Raw Normal View History

2001-03-04 19:42:05 -05:00
/*-
* See the file LICENSE for redistribution information.
*
2002-10-30 15:57:05 +04:00
* Copyright (c) 1997-2002
2001-03-04 19:42:05 -05:00
* Sleepycat Software. All rights reserved.
*/
#include "db_config.h"
#ifndef lint
2002-10-30 15:57:05 +04:00
static const char revid[] = "$Id: java_DbLock.c,v 11.12 2002/02/28 21:27:38 ubell Exp $";
2001-03-04 19:42:05 -05:00
#endif /* not lint */
#include <jni.h>
#include <stdlib.h>
#include <string.h>
2002-10-30 15:57:05 +04:00
#include "db_int.h"
2001-03-04 19:42:05 -05:00
#include "java_util.h"
#include "com_sleepycat_db_DbLock.h"
JNIEXPORT void JNICALL Java_com_sleepycat_db_DbLock_finalize
(JNIEnv *jnienv, jobject jthis)
{
DB_LOCK *dblock = get_DB_LOCK(jnienv, jthis);
if (dblock) {
/* Free any data related to DB_LOCK here */
2002-10-30 15:57:05 +04:00
__os_free(NULL, dblock);
2001-03-04 19:42:05 -05:00
}
set_private_dbobj(jnienv, name_DB_LOCK, jthis, 0); /* paranoia */
}