aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-05-16 21:18:21 +0200
committerjcid <devnull@localhost>2008-05-16 21:18:21 +0200
commit805e66683b1b11606ddff672e639da2c8906bbc3 (patch)
tree680a8737e7ae8caa3c7eb5651d445be977b4d5d0
parent2ad6948b8326ac5d6aa671027d65348c0c6c33c7 (diff)
- More switches from destroy() to delete() call for close window.
-rw-r--r--src/ui.cc2
-rw-r--r--src/uicmd.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 4d06214a..58f92118 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -601,7 +601,7 @@ UI::UI(int win_w, int win_h, const char* label, const UI *cur_ui) :
// Set handler for the close window event
// (the argument is set later via user_data())
- TopGroup->callback(close_window_cb);
+ callback(close_window_cb);
// Control panel
Panel = make_panel(win_w);
diff --git a/src/uicmd.cc b/src/uicmd.cc
index e687c600..f3da2d0a 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -125,8 +125,8 @@ void a_UIcmd_close_bw(void *vbw)
MSG("a_UIcmd_close_bw\n");
a_Bw_stop_clients(bw, BW_Root + BW_Img + Bw_Force);
- ui->destroy();
delete(layout);
+ delete(ui);
a_Bw_free(bw);
}