diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-03-27 21:35:17 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-03-27 21:35:17 +0000 |
commit | 7738584b3411fa0941579831deae388139eb7a5a (patch) | |
tree | cdb70c9f6db48b703da35eabb24eb2fda2a69e8a | |
parent | 119b8af2db392c85eb07d0aefbadeda62f1b1cc9 (diff) | |
download | netsurf-7738584b3411fa0941579831deae388139eb7a5a.tar.gz netsurf-7738584b3411fa0941579831deae388139eb7a5a.tar.bz2 |
Don't pass pointer to data that isn't on the stack any more to content_broadcast.
-rw-r--r-- | render/html_interaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/html_interaction.c b/render/html_interaction.c index ce2f78c96..e030e570d 100644 --- a/render/html_interaction.c +++ b/render/html_interaction.c @@ -1261,6 +1261,7 @@ void html_set_focus(html_content *html, html_focus_type focus_type, union content_msg_data msg_data; int x_off = 0; int y_off = 0; + struct rect cr; bool textarea_lost_focus = html->focus_type == HTML_FOCUS_TEXTAREA && focus_type != HTML_FOCUS_TEXTAREA; @@ -1291,7 +1292,6 @@ void html_set_focus(html_content *html, html_focus_type focus_type, } else if (focus_type != HTML_FOCUS_SELF && hide_caret) { msg_data.caret.type = CONTENT_CARET_HIDE; } else { - struct rect cr; if (clip != NULL) { cr = *clip; cr.x0 += x_off; |