From 4be1386eeb4858bce3ade065deb2f351b9cae2ff Mon Sep 17 00:00:00 2001 From: Robert Manea Date: Thu, 9 Jul 2009 11:44:51 +0200 Subject: free uzbl.gui.geometry before resetting it --- uzbl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'uzbl.c') diff --git a/uzbl.c b/uzbl.c index bc51642..2220832 100644 --- a/uzbl.c +++ b/uzbl.c @@ -2715,6 +2715,9 @@ retreive_geometry() { gtk_window_get_position(GTK_WINDOW(uzbl.gui.main_window), &x, &y); g_string_printf(buf, "%dx%d+%d+%d", w, h, x, y); + + if(uzbl.gui.geometry) + g_free(uzbl.gui.geometry); uzbl.gui.geometry = g_string_free(buf, FALSE); } -- cgit v1.2.3