summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 07be0be07b..aef6b941f3 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 {