mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-11 14:28:08 +01:00
20 lines
421 B
Java
20 lines
421 B
Java
|
package org.pngquant;
|
||
|
|
||
|
abstract class LiqObject {
|
||
|
static {
|
||
|
// libimagequant.jnilib or libimagequant.so must be in java.library.path
|
||
|
System.loadLibrary("imagequant");
|
||
|
}
|
||
|
|
||
|
long handle;
|
||
|
|
||
|
/**
|
||
|
* Free memory used by the library. The object must not be used after this call.
|
||
|
*/
|
||
|
abstract public void close();
|
||
|
|
||
|
protected void finalize() throws Throwable {
|
||
|
close();
|
||
|
}
|
||
|
}
|