summaryrefslogtreecommitdiff
path: root/frontends/amiga/gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-09-10 16:05:41 +0100
committerVincent Sanders <vince@kyllikki.org>2017-09-10 16:06:38 +0100
commit8fb2fc6fc347ddd68db0ce70648e9a2d25ef88e3 (patch)
tree3192c08dfdc038ea0e0c5ee2b74bfd70e51efc90 /frontends/amiga/gui.c
parentc20ad212731526d46f872a8220c6a1f53696f7e1 (diff)
downloadnetsurf-8fb2fc6fc347ddd68db0ce70648e9a2d25ef88e3.tar.gz
netsurf-8fb2fc6fc347ddd68db0ce70648e9a2d25ef88e3.tar.bz2
rationalise history icon bitmap handling to ensure correct lifetime
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r--frontends/amiga/gui.c7
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);