summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorEnno Boland (Gottox) <gottox@s01.de>2009-06-05 18:05:08 +0200
committerEnno Boland (Gottox) <gottox@s01.de>2009-06-05 18:05:08 +0200
commitd1cfea4e86d517177ced89eb96f7f51aa9200298 (patch)
tree6353d3427d4532ebc62a0fee0a1c830cec3db262 /surf.c
parentbc5d280efefa23ebe0425a5f3de781194c2f94fc (diff)
downloadsurf-d1cfea4e86d517177ced89eb96f7f51aa9200298.tar.gz
surf-d1cfea4e86d517177ced89eb96f7f51aa9200298.tar.bz2
surf-d1cfea4e86d517177ced89eb96f7f51aa9200298.zip
removed all unneeded event listeners... really!
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/surf.c b/surf.c
index cfc4d07..1370057 100644
--- a/surf.c
+++ b/surf.c
@@ -41,8 +41,6 @@ static gboolean keypress(GtkWidget* w, GdkEventKey *ev);
static void titlechange(WebKitWebView* view, WebKitWebFrame* frame, const gchar* title, gpointer d);
static void progresschange(WebKitWebView *view, gint p, gpointer d);
static void loadcommit(WebKitWebView *view, WebKitWebFrame *f, gpointer d);
-static void loadstart(WebKitWebView *view, WebKitWebFrame *f, gpointer d);
-static void loadfinish(WebKitWebView *view, WebKitWebFrame *f, gpointer d);
static void linkhover(WebKitWebView* page, const gchar* t, const gchar* l, gpointer d);
static gboolean newwindow(WebKitWebView *view, WebKitWebFrame *f,
WebKitNetworkRequest *r, WebKitWebNavigationAction *n,
@@ -90,7 +88,6 @@ loadfile(gchar *f) {
GString *uri = g_string_new(f);
gchar *line;
- /* cannot use fileno in c99 - workaround*/
if(strcmp(f, "-") == 0) {
c = g_io_channel_unix_new(STDIN_FILENO);
if (c) {
@@ -99,6 +96,7 @@ loadfile(gchar *f) {
g_free(line);
}
webkit_web_view_load_html_string(view, code->str, NULL);
+ g_free(code);
g_io_channel_shutdown(c, FALSE, NULL);
}
}