/** Release resources */ public void nullify() { try { g = null; c.nullify(); c = null; pot.nullify(); pot = null; } catch (NullPointerException e) { } }