diff options
author | Pawel Tomak <satherot@gmail.com> | 2010-03-11 21:43:15 +0100 |
---|---|---|
committer | Pawel Tomak <satherot@gmail.com> | 2010-03-11 21:43:15 +0100 |
commit | f01a759117615d20dc2d24d710610c0a64db34a9 (patch) | |
tree | e463c20424ee9cd52ad7abfb1a93428bcce9f9eb /src/uzbl-core.c | |
parent | bb862588a60e48ac47759b0b8fda36d9a0775df8 (diff) | |
parent | 5f6fe61088d70438ac50da1ace531925061f5704 (diff) |
Merge branch 'experimental' of git://github.com/Dieterbe/uzbl into eFormFiller
Diffstat (limited to 'src/uzbl-core.c')
-rw-r--r-- | src/uzbl-core.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/uzbl-core.c b/src/uzbl-core.c index 6d90d09..d449ab3 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -500,7 +500,10 @@ clean_up(void) { g_free(uzbl.info.pid_str); g_free(uzbl.state.executable_path); - g_hash_table_destroy(uzbl.behave.commands); + if (uzbl.behave.commands) { + g_hash_table_destroy(uzbl.behave.commands); + uzbl.behave.commands = NULL; + } if(uzbl.state.event_buffer) g_ptr_array_free(uzbl.state.event_buffer, TRUE); @@ -1082,9 +1085,9 @@ eval_js(WebKitWebView * web_view, gchar *script, GString *result, const char *fi size_t size; JSStringRef prop, val; JSObjectRef exc = JSValueToObject(context, js_exc, NULL); - + printf("Exception occured while executing script:\n"); - + /* Print file */ prop = JSStringCreateWithUTF8CString("sourceURL"); val = JSValueToStringCopy(context, JSObjectGetProperty(context, exc, prop, NULL), NULL); @@ -1108,7 +1111,7 @@ eval_js(WebKitWebView * web_view, gchar *script, GString *result, const char *fi } JSStringRelease(prop); JSStringRelease(val); - + /* Print message */ val = JSValueToStringCopy(context, exc, NULL); size = JSStringGetMaximumUTF8CStringSize(val); |