summaryrefslogtreecommitdiff
path: root/src/scripts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts.c')
-rw-r--r--src/scripts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts.c b/src/scripts.c
index 0494eaf1..abead018 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -415,7 +415,7 @@ wv_load_uri(JSContextRef ctx, JSObjectRef function, JSObjectRef this, size_t arg
if (argc == 0)
return JSValueMakeBoolean(ctx, false);
- WebKitWebView *wv;
+ WebKitWebView *wv = JSObjectGetPrivate(this);
if (wv != NULL)
{
char *uri = js_value_to_char(ctx, argv[0], -1, exc);
@@ -434,7 +434,7 @@ wv_load_uri(JSContextRef ctx, JSObjectRef function, JSObjectRef this, size_t arg
static JSValueRef
wv_stop_loading(JSContextRef ctx, JSObjectRef function, JSObjectRef this, size_t argc, const JSValueRef argv[], JSValueRef* exc)
{
- WebKitWebView *wv;
+ WebKitWebView *wv = JSObjectGetPrivate(this);;
if (wv != NULL)
webkit_web_view_stop_loading(wv);
return UNDEFINED;