EPhysics: free body and constraint list on test
authorLeandro Dorileo <dorileo@profusion.mobi>
Fri, 14 Dec 2012 20:04:24 +0000 (20:04 +0000)
committerLeandro Dorileo <dorileo@profusion.mobi>
Fri, 14 Dec 2012 20:04:24 +0000 (20:04 +0000)
SVN revision: 80985

legacy/ephysics/src/examples/test.c

index 39fe46e..88cbb5e 100644 (file)
@@ -155,6 +155,10 @@ test_data_del(Test_Data *test_data)
    Evas_Object *evas_obj;
    EINA_LIST_FREE(test_data->evas_objs, evas_obj)
       evas_object_del(evas_obj);
+
+   eina_list_free(test_data->bodies);
+   eina_list_free(test_data->constraints);
+
    evas_object_del(test_data->layout);
    ephysics_world_del(test_data->world);
    free(test_data);