aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-01-02 21:01:11 +0100
committerjcid <devnull@localhost>2008-01-02 21:01:11 +0100
commitdb11521791963950f04077dbafd105360e5b6f7b (patch)
treee8cf0303f99f6cf645c20c96859ec80d5c99073f /src
parent40e4a2e136c7829676ba634169f8cc86379b8d46 (diff)
- Fixed a segfault bug when closing a bw under active networking.
Diffstat (limited to 'src')
-rw-r--r--src/html.cc2
-rw-r--r--src/uicmd.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc
index 520f0b44..740f49ed 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3232,7 +3232,7 @@ static void Html_tag_open_li(DilloHtml *html, const char *tag, int tagsize)
DW2TB(html->dw)->addParbreak (2, word_style);
- list_item = new ListItem ((ListItem *)*ref_list_item,prefs.limit_text_width);
+ list_item = new ListItem ((ListItem*)*ref_list_item,prefs.limit_text_width);
DW2TB(html->dw)->addWidget (list_item, item_style);
DW2TB(html->dw)->addParbreak (2, word_style);
*ref_list_item = list_item;
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 58d5089e..7a9d8a59 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -124,6 +124,7 @@ void a_UIcmd_close_bw(void *vbw)
Layout *layout = (Layout*)bw->render_layout;
MSG("a_UIcmd_close_bw\n");
+ a_Bw_stop_clients(bw, BW_Root + BW_Img + Bw_Force);
ui->destroy();
delete(layout);
a_Bw_free(bw);