Fix some crashes and a bunch of memory leaks/errors. There are still a few memory leaks originating deep within ewl somewhere. Also, if you don't open the config_inwin before closing the program, there are some errors.
This commit is contained in:
@@ -36,12 +36,8 @@ ecdb_project_init(Ecdb_Project *proj)
|
||||
void
|
||||
ecdb_project_destroy(Ecdb_Project *proj)
|
||||
{
|
||||
FREE(proj->drive);
|
||||
if (proj->ev_handler) ecore_event_handler_del(proj->ev_handler);
|
||||
if (proj->pipe) ecore_pipe_del(proj->pipe);
|
||||
if (proj->ret) evas_object_del(proj->ret);
|
||||
if (proj->begin) evas_object_del(proj->begin);
|
||||
if (proj->drive_combo) evas_object_del(proj->drive_combo);
|
||||
printf("Destroying base project\n");
|
||||
}
|
||||
|
||||
@@ -91,7 +87,6 @@ void
|
||||
ecdb_burn_project_destroy(Ecdb_Burn_Project *proj)
|
||||
{
|
||||
if (proj->files) ecdb_source_destroy(proj->files);
|
||||
if (proj->speed_combo) evas_object_del(proj->speed_combo);
|
||||
ecdb_project_destroy(ECDB_PROJECT(proj));
|
||||
printf("Destroying burn project\n");
|
||||
}
|
||||
@@ -135,7 +130,6 @@ ecdb_erase_project_init(Ecdb_Erase_Project *proj)
|
||||
void
|
||||
ecdb_erase_project_destroy(Ecdb_Erase_Project *proj)
|
||||
{
|
||||
if (proj->speed) evas_object_del(proj->speed);
|
||||
ecdb_project_destroy(ECDB_PROJECT(proj));
|
||||
FREE(proj);
|
||||
}
|
||||
@@ -217,10 +211,6 @@ ecdb_data_project_init(Ecdb_Data_Project *proj)
|
||||
void
|
||||
ecdb_data_project_destroy(Ecdb_Data_Project *proj)
|
||||
{
|
||||
if (proj->capacity) evas_object_del(proj->capacity);
|
||||
if (proj->settings) evas_object_del(proj->settings);
|
||||
if (proj->filelist_swallow) evas_object_del(proj->filelist_swallow);
|
||||
if (proj->filelist) ewl_widget_destroy(proj->filelist);
|
||||
FREE(proj->volume_id);
|
||||
FREE(proj->publisher_id);
|
||||
FREE(proj->data_preparer_id);
|
||||
@@ -266,7 +256,6 @@ ecdb_image_project_init(Ecdb_Image_Project *proj)
|
||||
void
|
||||
ecdb_image_project_destroy(Ecdb_Image_Project *proj)
|
||||
{
|
||||
if (proj->entry) evas_object_del(proj->entry);
|
||||
ecdb_burn_project_destroy(ECDB_BURN(proj));
|
||||
FREE(proj);
|
||||
}
|
||||
|
Reference in New Issue
Block a user