forked from enlightenment/efl
Eolian: Valgrind fixes.
This commit is contained in:
parent
7f90088232
commit
1c19d274d8
|
@ -120,6 +120,7 @@ database_type_del(Eolian_Type type)
|
||||||
_Parameter_Type *ptype = (_Parameter_Type *) type;
|
_Parameter_Type *ptype = (_Parameter_Type *) type;
|
||||||
eina_stringshare_del(ptype->name);
|
eina_stringshare_del(ptype->name);
|
||||||
type = eina_inlist_remove(type, EINA_INLIST_GET(ptype));
|
type = eina_inlist_remove(type, EINA_INLIST_GET(ptype));
|
||||||
|
free(ptype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,6 +133,8 @@ _fid_del(_Function_Id *fid)
|
||||||
eina_hash_free(fid->data);
|
eina_hash_free(fid->data);
|
||||||
EINA_LIST_FREE(fid->keys, param) _param_del(param);
|
EINA_LIST_FREE(fid->keys, param) _param_del(param);
|
||||||
EINA_LIST_FREE(fid->params, param) _param_del(param);
|
EINA_LIST_FREE(fid->params, param) _param_del(param);
|
||||||
|
database_type_del(fid->get_ret_type);
|
||||||
|
database_type_del(fid->set_ret_type);
|
||||||
free(fid);
|
free(fid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,9 +192,7 @@ database_init()
|
||||||
{
|
{
|
||||||
if (_database_init_count > 0) return ++_database_init_count;
|
if (_database_init_count > 0) return ++_database_init_count;
|
||||||
eina_init();
|
eina_init();
|
||||||
if (!_classes)
|
|
||||||
_classes = eina_hash_stringshared_new(_hash_free_cb);
|
_classes = eina_hash_stringshared_new(_hash_free_cb);
|
||||||
if (!_filenames)
|
|
||||||
_filenames = eina_hash_string_small_new(free);
|
_filenames = eina_hash_string_small_new(free);
|
||||||
return ++_database_init_count;
|
return ++_database_init_count;
|
||||||
}
|
}
|
||||||
|
|
|
@ -309,7 +309,6 @@ main(int argc, char **argv)
|
||||||
Suite *s;
|
Suite *s;
|
||||||
SRunner *sr;
|
SRunner *sr;
|
||||||
int i, failed_count;
|
int i, failed_count;
|
||||||
eolian_init();
|
|
||||||
setenv("CK_FORK", "no", 0);
|
setenv("CK_FORK", "no", 0);
|
||||||
|
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
|
@ -339,7 +338,5 @@ main(int argc, char **argv)
|
||||||
failed_count = srunner_ntests_failed(sr);
|
failed_count = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
||||||
eolian_shutdown();
|
|
||||||
|
|
||||||
return (failed_count == 0) ? 0 : 255;
|
return (failed_count == 0) ? 0 : 255;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue