summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontends/amiga/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/amiga/tree.c b/frontends/amiga/tree.c
index 90497092d..79753a7d3 100644
--- a/frontends/amiga/tree.c
+++ b/frontends/amiga/tree.c
@@ -234,6 +234,7 @@ static void ami_tree_redraw_req_dr(void *p)
if(ami_gui_get_space_box(twin->objects[GID_BROWSER], &bbox) != NSERROR_OK) {
amiga_warn_user("NoMemory", "");
+ free(atrr_data);
return;
}
@@ -282,6 +283,8 @@ static void ami_tree_redraw_req(void *p)
.plot = &amiplot
};
+ free(atrr_data);
+
if(!twin->win) return;
ami_update_pointer(twin->win, GUI_POINTER_WAIT);
@@ -341,7 +344,6 @@ static void ami_tree_redraw_req(void *p)
}
}
- free(atrr_data);
ami_gui_free_space_box(bbox);
ami_update_pointer(twin->win, GUI_POINTER_DEFAULT);
ami_clearclipreg(glob);