natClass.cc (finalize): Make sure that the class really has an engine.
2011-07-12 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (finalize): Make sure that the class really has an engine. From-SVN: r176199
This commit is contained in:
parent
ab079773d3
commit
2558c6054e
@ -1,3 +1,8 @@
|
||||
2011-07-12 Andrew Haley <aph@redhat.com>
|
||||
|
||||
* java/lang/natClass.cc (finalize): Make sure that the class
|
||||
really has an engine.
|
||||
|
||||
2011-07-07 Matthias Klose <doko@ubuntu.com>
|
||||
|
||||
* libtool-version: Bump soversion.
|
||||
|
@ -668,7 +668,9 @@ java::lang::Class::newInstance (void)
|
||||
void
|
||||
java::lang::Class::finalize (void)
|
||||
{
|
||||
engine->unregister(this);
|
||||
// Array classes don't have an engine, and don't need to be finalized.
|
||||
if (engine)
|
||||
engine->unregister(this);
|
||||
}
|
||||
|
||||
#ifdef INTERPRETER
|
||||
|
Loading…
Reference in New Issue
Block a user