From 7738584b3411fa0941579831deae388139eb7a5a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 27 Mar 2014 21:35:17 +0000 Subject: Don't pass pointer to data that isn't on the stack any more to content_broadcast. --- render/html_interaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3