summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Lepsch <lepsch@expertisesolutions.com.br>2015-02-27 12:11:33 -0300
committerGuilherme Lepsch <lepsch@expertisesolutions.com.br>2015-02-27 12:11:33 -0300
commitfc9a7b2366e3fe1f161e177469588f43bba59e33 (patch)
treedb4cf0c265f10edb89592f47d8846f126cb359f7
parent8fef814be8fb8bbcdd098218db4c518e20056ce2 (diff)
ejson: fix leaks
-rw-r--r--src/lib/ejson_model.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ejson_model.c b/src/lib/ejson_model.c
index 57786ca..312d36e 100644
--- a/src/lib/ejson_model.c
+++ b/src/lib/ejson_model.c
@@ -77,7 +77,6 @@ _ejson_model_eo_base_destructor(Eo *obj, Ejson_Model_Data *pd)
77 _ejson_model_clear(pd); 77 _ejson_model_clear(pd);
78 78
79 eina_hash_free(pd->children_hash); 79 eina_hash_free(pd->children_hash);
80 emodel_value_struct_desc_free(pd->properties_desc);
81 eina_array_free(pd->properties_calc); 80 eina_array_free(pd->properties_calc);
82 81
83 eo_do_super(obj, MY_CLASS, eo_destructor()); 82 eo_do_super(obj, MY_CLASS, eo_destructor());
@@ -349,7 +348,6 @@ _ejson_model_json_property_set(Ejson_Model_Data *pd, Eina_Value *value)
349 } 348 }
350 349
351 _ejson_model_clear(pd); 350 _ejson_model_clear(pd);
352 emodel_value_struct_desc_free(pd->properties_desc);
353 351
354 pd->stream = stream; 352 pd->stream = stream;
355 353
@@ -623,6 +621,7 @@ _ejson_model_emodel_child_del(Eo *obj,
623 if (data->index > index) 621 if (data->index > index)
624 --data->index; 622 --data->index;
625 } 623 }
624 eina_iterator_free(it);
626 625
627 json_object_put(pd->json); 626 json_object_put(pd->json);
628 pd->json = json; 627 pd->json = json;
@@ -823,6 +822,8 @@ _ejson_model_clear(Ejson_Model_Data *pd)
823 822
824 free(pd->stream); 823 free(pd->stream);
825 pd->stream = NULL; 824 pd->stream = NULL;
825
826 emodel_value_struct_desc_free(pd->properties_desc);
826} 827}
827 828
828typedef struct _Ejson_Model_Properties_Setup 829typedef struct _Ejson_Model_Properties_Setup