removing debug output
[surf.git] / surf.c
diff --git a/surf.c b/surf.c
index 86082ef..8c83eff 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -136,7 +136,6 @@ buildpath(const gchar *path) {
        /* creating file (gives error when apath ends with "/") */
        if((f = g_fopen(apath, "a")))
                fclose(f);
-       puts(apath);
        return apath;
 }
 
@@ -144,9 +143,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
@@ -175,7 +175,7 @@ void
 destroyclient(Client *c) {
        Client *p;
 
-       gtk_widget_destroy(GTK_WIDGET(webkit_web_view_new()));
+       gtk_widget_destroy(GTK_WIDGET(c->view));
        gtk_widget_destroy(c->scroll);
        gtk_widget_destroy(c->urlbar);
        gtk_widget_destroy(c->searchbar);