summaryrefslogtreecommitdiff
path: root/src/editor.c
diff options
context:
space:
mode:
authorportix <none@none>2013-02-18 22:23:56 +0100
committerportix <none@none>2013-02-18 22:23:56 +0100
commitf5d7bcfdada973cc6875ff3cfd52147aba4f5b48 (patch)
tree5af9f14414e595464c585d4331044bd8f6fca159 /src/editor.c
parentefbfa138fded83487e15ce596693a20d3c2c7608 (diff)
downloaddwb-f5d7bcfdada973cc6875ff3cfd52147aba4f5b48.zip
Fixing some of the clang warnings
Diffstat (limited to 'src/editor.c')
-rw-r--r--src/editor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/editor.c b/src/editor.c
index 465285f2..d5498d8f 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -93,7 +93,8 @@ editor_watch(GPid pid, int status, EditorInfo *info)
webkit_dom_html_element_set_inner_text(WEBKIT_DOM_HTML_ELEMENT(e), content, NULL);
clean:
- disconnect_navigation(info->gl);
+ if (info->gl)
+ disconnect_navigation(info->gl);
unlink(info->filename);
g_free(info->filename);