diff --git a/src/ecmascript/see/window.c b/src/ecmascript/see/window.c index 51cfa45e6..41729329e 100644 --- a/src/ecmascript/see/window.c +++ b/src/ecmascript/see/window.c @@ -294,7 +294,7 @@ js_window_open(struct SEE_interpreter *interp, struct SEE_object *self, if (deo) { deo->ses = ses; deo->uri = get_uri_reference(uri); - deo->target = target; + deo->target = stracpy(target); /* target will be freed in delayed_goto_uri_frame */ register_bottom_half(delayed_goto_uri_frame, deo); goto end;