changeset 337:47c57c73dd2c

- minor mem leak fix.
author jcid
date Sun, 14 Sep 2008 22:39:11 +0200
parents 3dcac1f10b96
children 235b62c44ee4
files src/bw.c src/ui.cc
diffstat 2 files changed, 11 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/bw.c	Sun Sep 14 22:26:08 2008 +0200
+++ b/src/bw.c	Sun Sep 14 22:39:11 2008 +0200
@@ -91,6 +91,7 @@
          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);
--- a/src/ui.cc	Sun Sep 14 22:26:08 2008 +0200
+++ b/src/ui.cc	Sun Sep 14 22:39:11 2008 +0200
@@ -271,12 +271,12 @@
 /*
  * 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 @@
 
    // 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);