fixing memoryleak.
authorEnno Boland (tox) <tox@s01.de>
Tue, 13 Oct 2009 19:58:35 +0000 (21:58 +0200)
committerEnno Boland (tox) <tox@s01.de>
Tue, 13 Oct 2009 19:58:35 +0000 (21:58 +0200)
surf.c

diff --git a/surf.c b/surf.c
index 86082ef..cd80c21 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -144,9 +144,10 @@ void
 cleanup(void) {
        while(clients)
                destroyclient(clients);
-       g_free(stylefile);
-       g_free(scriptfile);
+       g_free(cookiefile);
        g_free(dldir);
+       g_free(scriptfile);
+       g_free(stylefile);
 }
 
 void