Cleanup (memory + dead code)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user