Don't crash when freeing diskobject

svn path=/trunk/netsurf/; revision=12565
This commit is contained in:
Chris Young 2011-07-03 11:54:43 +00:00
parent 9d30f67d54
commit b6cc0550cd
1 changed files with 2 additions and 2 deletions

View File

@ -533,10 +533,10 @@ struct DiskObject *amiga_icon_from_bitmap(struct bitmap *bm)
ICONCTRLA_SetImageData1, bm->icondata,
ICONCTRLA_SetImageData2, NULL,
TAG_DONE);
dobj->do_Gadget.UserData = bm;
}
dobj->do_Gadget.UserData = bm;
LayoutIconA(dobj, (struct Screen *)~0UL, NULL);
return dobj;