package jlilv.c; public class CObject { long cpointer; CFree cfree = null; @Override protected void finalize() throws Throwable { if(cfree != null) this.cfree.free(this.cpointer); } }