code: public void clear() {
  		if (planePointers != null) {
  			for (int i = 0; i < getPlaneCount(); i++) {
  				av_free(planePointers[i].position(0));
  			}
  			planePointers = null;
  		}
  	}
docs: Free the memory of sample buffers.