aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-08-16 18:15:46 +0200
committerThomas White <taw@bitwiz.org.uk>2015-08-16 18:15:46 +0200
commit321afdd0e417c701fbf9797ccfc3fd59a86d4dc2 (patch)
tree8dc56f70c27d6e81e40f7d9585810e9f8e58906f /src/frame.c
parentf0b6caf6998fc4998b14e25ccc9318349ad552ad (diff)
Top frame is created by rendering pipeline, but owned by caller
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 8c670bc..9f23d17 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -78,6 +78,19 @@ struct frame *frame_new()
}
+void frame_free(struct frame *fr)
+{
+ int i;
+
+ free(fr->boxes);
+ for ( i=0; i<fr->num_children; i++ ) {
+ frame_free(fr->children[i]);
+ }
+ free(fr->children);
+ free(fr);
+}
+
+
void renew_frame(struct frame *fr)
{
int i;