diff options
Diffstat (limited to 'xombrero.c')
-rw-r--r-- | xombrero.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xombrero.c b/xombrero.c index 3802e0e..0b5c10d 100644 --- a/xombrero.c +++ b/xombrero.c @@ -4122,6 +4122,10 @@ notify_load_status_cb(WebKitWebView* wview, GParamSpec* pspec, struct tab *t) /* DOM is changing, unreference the previous focused element */ t->active = NULL; + if (t->active_text) { + g_free(t->active_text); + t->active_text = NULL; + } /* take focus if we are visible */ focus_webview(t); |