diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-09-10 16:05:41 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-09-10 16:06:38 +0100 |
commit | 8fb2fc6fc347ddd68db0ce70648e9a2d25ef88e3 (patch) | |
tree | 3192c08dfdc038ea0e0c5ee2b74bfd70e51efc90 /frontends/amiga | |
parent | c20ad212731526d46f872a8220c6a1f53696f7e1 (diff) | |
download | netsurf-8fb2fc6fc347ddd68db0ce70648e9a2d25ef88e3.tar.gz netsurf-8fb2fc6fc347ddd68db0ce70648e9a2d25ef88e3.tar.bz2 |
rationalise history icon bitmap handling to ensure correct lifetime
Diffstat (limited to 'frontends/amiga')
-rw-r--r-- | frontends/amiga/gui.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index fbaa2acfb..eca5b927c 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -2527,10 +2527,9 @@ static BOOL ami_gui_event(void *w) #ifdef __amigaos4__ case WMHI_ICONIFY: { - struct bitmap *bm; - - bm = urldb_get_thumbnail(browser_window_get_url(gwin->gw->bw)); - if(!bm) bm = content_get_bitmap(browser_window_get_content(gwin->gw->bw)); + struct bitmap *bm = NULL; + browser_window_history_get_thumbnail(gwin->gw->bw, + &bm); gwin->dobj = amiga_icon_from_bitmap(bm); amiga_icon_superimpose_favicon_internal(gwin->gw->favicon, gwin->dobj); |