aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--uzbl.c3
1 files changed, 3 insertions, 0 deletions
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);
}