Call g_string_free
authorJoachim Breitner <mail@joachim-breitner.de>
Tue, 2 Mar 2010 20:35:17 +0000 (20:35 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Tue, 2 Mar 2010 20:35:17 +0000 (20:35 +0000)
sm.c

diff --git a/sm.c b/sm.c
index e189daa..c10398d 100644 (file)
--- a/sm.c
+++ b/sm.c
@@ -326,6 +326,7 @@ int main(int argc, char **argv) {
                input = g_string_new(":-)");
 
        gtk_text_buffer_set_text(tb, input->str, input->len);
+       g_string_free(input, TRUE);
        GtkTextIter start, end;
        gtk_text_buffer_get_bounds(tb, &start, &end);
        gtk_text_buffer_select_range(tb, &start, &end);