Cleanup (memory + dead code)

This commit is contained in:
2020-06-12 18:14:22 -07:00
parent 81fd753efd
commit cddaf13050
5 changed files with 87 additions and 59 deletions

View File

@@ -69,7 +69,7 @@ bool ui_mytasks(ui_state *state) {
clrtobot();
refresh();
Project my_tasks;
Project my_tasks = {PROJECT, NULL, NULL, 0, NULL};
if (user_task_list(gid, &my_tasks) != ASANA_ERR_OK) {
fprintf(stderr, "Unable to get task list.\n");
return true;
@@ -87,6 +87,8 @@ bool ui_mytasks(ui_state *state) {
clrtoeol();
}
asana_free_resource((Resource *)&my_tasks);
clrtobot();
return false;