Don't clone a NULL gesturer

svn path=/trunk/netsurf/; revision=2613
This commit is contained in:
Daniel Silverstone 2006-06-02 13:31:18 +00:00
parent a8ebc5ba5a
commit 52e973d094

View File

@ -115,7 +115,7 @@ void browser_window_create(const char *url, struct browser_window *clone,
bw->history = history_create();
else
bw->history = history_clone(clone->history);
if (!clone)
if (!clone || (clone && !clone->gesturer))
bw->gesturer = NULL;
else
bw->gesturer = gesturer_clone(clone->gesturer);