diff options
author | jcid <devnull@localhost> | 2008-09-14 22:39:11 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-14 22:39:11 +0200 |
commit | 91565643de3a05bce6290eedbd400d9ed2934b36 (patch) | |
tree | 0368f2f813b9907366ed7ed5111594b65a17a2bc | |
parent | bab63c2851391b8e272dd8ea8d067de3dd19e503 (diff) |
- minor mem leak fix.
-rw-r--r-- | src/bw.c | 1 | ||||
-rw-r--r-- | src/ui.cc | 20 |
2 files changed, 11 insertions, 10 deletions
@@ -91,6 +91,7 @@ void a_Bw_free(BrowserWindow *bw) dList_free(bw->ImageClients); dList_free(bw->Docs); + a_Url_free(bw->nav_expect_url); for (j = 0; j < dList_length(bw->PageUrls); ++j) a_Url_free(dList_nth_data(bw->PageUrls, j)); dList_free(bw->PageUrls); @@ -271,12 +271,12 @@ static void b1_cb(Widget *wid, void *cb_data) /* * Callback handler for fullscreen button press */ -static void fullscreen_cb(Widget *wid, void *data) -{ - /* todo: do we want to toggle fullscreen or panelmode? - maybe we need to add another button?*/ - ((UI*)data)->panelmode_cb_i(); -} +//static void fullscreen_cb(Widget *wid, void *data) +//{ +// /* todo: do we want to toggle fullscreen or panelmode? +// maybe we need to add another button?*/ +// ((UI*)data)->panelmode_cb_i(); +//} /* * Callback for the bug meter button. @@ -707,12 +707,12 @@ UI::UI(int win_w, int win_h, const char* label, const UI *cur_ui) : // Make the full screen button (to be attached to the viewport later) // TODO: attach to the viewport - FullScreen = new HighlightButton(0,0,15,15); + //FullScreen = new HighlightButton(0,0,15,15); ImgFullScreenOn = new xpmImage(full_screen_on_xpm); ImgFullScreenOff = new xpmImage(full_screen_off_xpm); - FullScreen->image(ImgFullScreenOn); - FullScreen->tooltip("Hide Controls"); - FullScreen->callback(fullscreen_cb, (void *)this); + //FullScreen->image(ImgFullScreenOn); + //FullScreen->tooltip("Hide Controls"); + //FullScreen->callback(fullscreen_cb, (void *)this); customize(0); |