Don't crash when freeing diskobject
svn path=/trunk/netsurf/; revision=12565
This commit is contained in:
parent
9d30f67d54
commit
b6cc0550cd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue