Don't try to decrease refcount to result matrix before we declare it.