seamus

commit 68fa754feffbca7dcb96f462b76c17548c49576b

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

status: clean up status window and variables

 src/seamus.c | 1 +
 src/ui.c | 4 ++++


diff --git a/src/seamus.c b/src/seamus.c
index 80f64ab259540b217f9f58cba5fc9e262b91f423..94bc1b6056062ea3b63fc127513b8cb7aa75a24e 100755
--- a/src/seamus.c
+++ b/src/seamus.c
@@ -44,6 +44,7 @@ 		seamus->queue_size--;
 	}
 
 	free(seamus->queue);
+	free(seamus->current_status);
 }
 
 int




diff --git a/src/ui.c b/src/ui.c
index e8cf55e9373094835006489e5e7cb182da097779..b31cf4582507081a7dce56d492575550584e4771 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -73,6 +73,8 @@ 	TickitExposeEventInfo *info = _info;
 	TickitRenderBuffer *render_buffer = info->rb;
 	struct seamus_frontend *seamus = (struct seamus_frontend*) data;
 
+	tickit_renderbuffer_eraserect(render_buffer, &info->rect);
+
 	int r = fetch_current_status(seamus);
 
 	if (r != 0) {
@@ -110,6 +112,8 @@ 			tickit_renderbuffer_text(render_buffer, seamus->current_status);
 			tickit_renderbuffer_restore(render_buffer);
 		}
 	}
+
+	return 1;
 }
 
 static int