Only try to call freeDirectBuffer(...) when NOT on android