diff options
author | jcid <devnull@localhost> | 2008-05-16 21:18:21 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-05-16 21:18:21 +0200 |
commit | 805e66683b1b11606ddff672e639da2c8906bbc3 (patch) | |
tree | 680a8737e7ae8caa3c7eb5651d445be977b4d5d0 | |
parent | 2ad6948b8326ac5d6aa671027d65348c0c6c33c7 (diff) |
- More switches from destroy() to delete() call for close window.
-rw-r--r-- | src/ui.cc | 2 | ||||
-rw-r--r-- | src/uicmd.cc | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); } |