X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=8c83eff7acee8d6da00e29743b35b98997223edd;hb=95a6bfcc036d8a8f90b5231a710940d89dc58631;hp=86082efad5246ead0ac17101cd50375b04701a8f;hpb=0d28cf745823b8c188d169bc23a1131479ccfec6;p=surf.git diff --git a/surf.c b/surf.c index 86082ef..8c83eff 100644 --- 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);