Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/d3a80a9aae980bf7ce532a59fdab0df25419b59b
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/d3a80a9aae980bf7ce532a59fdab0df25419b59b
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/d3a80a9aae980bf7ce532a59fdab0df25419b59b

The branch, master has been updated
       via  d3a80a9aae980bf7ce532a59fdab0df25419b59b (commit)
       via  677d757a6cfe7dbca2272b6311742e127097a2f0 (commit)
      from  6a2ce2b3c74c3f5b0d0faee9fb0d6517bbc64fd7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=d3a80a9aae980bf7ce532a59fdab0df25419b59b
commit d3a80a9aae980bf7ce532a59fdab0df25419b59b
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    Monkey: Clean up on completion of downloads
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/frontends/monkey/download.c b/frontends/monkey/download.c
index 1c516e3..b9ca174 100644
--- a/frontends/monkey/download.c
+++ b/frontends/monkey/download.c
@@ -34,6 +34,7 @@ struct gui_download_window {
        struct gui_download_window *r_next;
        struct gui_download_window *r_prev;
        struct gui_window *g;
+       download_context *dlctx;
        uint32_t dwin_num;
        char *host; /* ignore */
 };
@@ -49,6 +50,7 @@ gui_download_window_create(download_context *ctx,
                return NULL;
        ret->g = parent;
        ret->dwin_num = dwin_ctr++;
+       ret->dlctx = ctx;
   
        RING_INSERT(dw_ring, ret);
   
@@ -79,6 +81,7 @@ gui_download_window_done(struct gui_download_window *dw)
 {
        moutf(MOUT_DOWNLOAD, "DONE DWIN %u", dw->dwin_num);
        RING_REMOVE(dw_ring, dw);
+       download_context_destroy(dw->dlctx);
        free(dw);
 }
 


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=677d757a6cfe7dbca2272b6311742e127097a2f0
commit 677d757a6cfe7dbca2272b6311742e127097a2f0
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    browser_window: Re-add clearing of loading_content in download
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/desktop/browser_window.c b/desktop/browser_window.c
index 9151ee1..3ae585e 100644
--- a/desktop/browser_window.c
+++ b/desktop/browser_window.c
@@ -701,6 +701,7 @@ browser_window_convert_to_download(struct browser_window 
*bw,
 
        /* remove content from browser window */
        hlcache_handle_release(bw->loading_content);
+       bw->loading_content = NULL;
 
        browser_window_stop_throbber(bw);
 }


-----------------------------------------------------------------------

Summary of changes:
 desktop/browser_window.c    |    1 +
 frontends/monkey/download.c |    3 +++
 2 files changed, 4 insertions(+)

diff --git a/desktop/browser_window.c b/desktop/browser_window.c
index 9151ee1..3ae585e 100644
--- a/desktop/browser_window.c
+++ b/desktop/browser_window.c
@@ -701,6 +701,7 @@ browser_window_convert_to_download(struct browser_window 
*bw,
 
        /* remove content from browser window */
        hlcache_handle_release(bw->loading_content);
+       bw->loading_content = NULL;
 
        browser_window_stop_throbber(bw);
 }
diff --git a/frontends/monkey/download.c b/frontends/monkey/download.c
index 1c516e3..b9ca174 100644
--- a/frontends/monkey/download.c
+++ b/frontends/monkey/download.c
@@ -34,6 +34,7 @@ struct gui_download_window {
        struct gui_download_window *r_next;
        struct gui_download_window *r_prev;
        struct gui_window *g;
+       download_context *dlctx;
        uint32_t dwin_num;
        char *host; /* ignore */
 };
@@ -49,6 +50,7 @@ gui_download_window_create(download_context *ctx,
                return NULL;
        ret->g = parent;
        ret->dwin_num = dwin_ctr++;
+       ret->dlctx = ctx;
   
        RING_INSERT(dw_ring, ret);
   
@@ -79,6 +81,7 @@ gui_download_window_done(struct gui_download_window *dw)
 {
        moutf(MOUT_DOWNLOAD, "DONE DWIN %u", dw->dwin_num);
        RING_REMOVE(dw_ring, dw);
+       download_context_destroy(dw->dlctx);
        free(dw);
 }
 


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to