summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_table.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-13 19:44:40 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-13 19:44:40 +0900
commitadbb8e6675a9e838019a8314d063c2d15879fdd6 (patch)
tree9ec9923ee9c5b5722b834e81cb3bed569fd90a46 /src/lib/evas/canvas/evas_object_table.c
parent93da35c5abf12c1712d8a96a384375ddd0369a85 (diff)
evas - table - fix theoretical leak that likely will never happen
this addresses CID 1039663
Diffstat (limited to 'src/lib/evas/canvas/evas_object_table.c')
-rw-r--r--src/lib/evas/canvas/evas_object_table.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_table.c b/src/lib/evas/canvas/evas_object_table.c
index 07be0be..aef6b94 100644
--- a/src/lib/evas/canvas/evas_object_table.c
+++ b/src/lib/evas/canvas/evas_object_table.c
@@ -1169,6 +1169,7 @@ _pack(Eo *o, void *_pd, va_list *list)
1169 unsigned short rowspan = va_arg(*list, int); 1169 unsigned short rowspan = va_arg(*list, int);
1170 Eina_Bool *ret = va_arg(*list, Eina_Bool *); 1170 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
1171 if (ret) *ret = EINA_FALSE; 1171 if (ret) *ret = EINA_FALSE;
1172 Eina_Bool optalloc = EINA_FALSE;
1172 1173
1173 Evas_Object_Table_Option *opt; 1174 Evas_Object_Table_Option *opt;
1174 1175
@@ -1212,6 +1213,7 @@ _pack(Eo *o, void *_pd, va_list *list)
1212 ERR("could not allocate table option data."); 1213 ERR("could not allocate table option data.");
1213 return; 1214 return;
1214 } 1215 }
1216 optalloc = EINA_TRUE;
1215 } 1217 }
1216 1218
1217 opt->obj = child; 1219 opt->obj = child;
@@ -1249,6 +1251,7 @@ _pack(Eo *o, void *_pd, va_list *list)
1249 priv->size.cols = max_col; 1251 priv->size.cols = max_col;
1250 priv->size.rows = max_row; 1252 priv->size.rows = max_row;
1251 } 1253 }
1254 if (optalloc) free(opt);
1252 } 1255 }
1253 else 1256 else
1254 { 1257 {