From fabb15fec6e9f4ddd20fe46234201164d3aa8dbb Mon Sep 17 00:00:00 2001 From: cloudygoose Date: Thu, 2 Jul 2015 16:00:59 +0800 Subject: bug fix: Matrix space did not free --- nerv/lib/matrix/generic/matrix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nerv/lib/matrix/generic/matrix.c b/nerv/lib/matrix/generic/matrix.c index 5dbad48..e4afa37 100644 --- a/nerv/lib/matrix/generic/matrix.c +++ b/nerv/lib/matrix/generic/matrix.c @@ -12,7 +12,10 @@ static void nerv_matrix_(data_free)(Matrix *self, Status *status) { free(self->data_ref); free(self); } - else NERV_SET_STATUS(status, NERV_NORMAL, 0); + else { + free(self); + NERV_SET_STATUS(status, NERV_NORMAL, 0); + } } static void nerv_matrix_(data_retain)(Matrix *self) { -- cgit v1.2.3-70-g09d2