[evolution-data-server/openismus-work-3-8: 36/43] ESexp: Check for NULL before freeing a GPtrArray
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-3-8: 36/43] ESexp: Check for NULL before freeing a GPtrArray
- Date: Sun, 1 Dec 2013 09:43:02 +0000 (UTC)
commit 953d8c9dd34885ee6fc68f648119b91b2e171147
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Fri Nov 22 22:54:19 2013 +0900
ESexp: Check for NULL before freeing a GPtrArray
libedataserver/e-sexp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libedataserver/e-sexp.c b/libedataserver/e-sexp.c
index 9764639..06d1d54 100644
--- a/libedataserver/e-sexp.c
+++ b/libedataserver/e-sexp.c
@@ -205,7 +205,8 @@ e_sexp_result_free (struct _ESExp *f,
switch (t->type) {
case ESEXP_RES_ARRAY_PTR:
- g_ptr_array_free (t->value.ptrarray, TRUE);
+ if (t->value.ptrarray)
+ g_ptr_array_free (t->value.ptrarray, TRUE);
break;
case ESEXP_RES_BOOL:
case ESEXP_RES_INT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]