X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=8c83eff7acee8d6da00e29743b35b98997223edd;hb=95a6bfcc036d8a8f90b5231a710940d89dc58631;hp=cd80c21a4a7fc76ffb63c241d685c4e5df69a79c;hpb=029dac1504f9da97a3481d5e0fde0b18c2b33562;p=surf.git diff --git a/surf.c b/surf.c index cd80c21..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; } @@ -176,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);