Esempio n. 1
0
ASM SAVEDS void __UserLibCleanup( register __a6 struct Library *libbase )
{
    D(bug("picture.datatype/__UserLibCleanup\n"));

    D(bug("picture.datatype/__UserLibCleanup: Freeing class\n"));

    if(dt_class)
    {
	RemoveClass(dt_class);
	FreeClass(dt_class);
	dt_class = NULL;
    }

    D(bug("picture.datatype/__UserLibCleanup: Closing Libraries\n"));
    
    if(CyberGfxBase) CloseLibrary(CyberGfxBase);
    if(IFFParseBase) CloseLibrary(IFFParseBase);
    if(DataTypesBase) CloseLibrary(DataTypesBase);
    if(UtilityBase) CloseLibrary((struct Library *)UtilityBase);
    if(DiskfontBase) CloseLibrary(DiskfontBase);
    if(DOSBase) CloseLibrary((struct Library *)DOSBase);
    if(IntuitionBase) CloseLibrary((struct Library *)IntuitionBase);
    if(GfxBase) CloseLibrary((struct Library *)GfxBase);
    if(LayersBase) CloseLibrary(LayersBase);

    D(bug("picture.datatype/__UserLibCleanup: Done\n"));
}
Esempio n. 2
0
void free_bitmapclass(struct class_static_data *csd)
{
    EnterFunc(bug("free_bitmapclassAmigaIntui(csd=%p)\n", csd));

    if(csd)
    {
        RemoveClass(csd->bitmapclass);
        DisposeObject((Object *) csd->bitmapclass);
        csd->bitmapclass = NULL;
        if(HiddBitMapAttrBase) ReleaseAttrBase(IID_Hidd_BitMap);
    }

    ReturnVoid("free_bitmapclassAmigaIntui");
}
Esempio n. 3
0
VOID FreeTimerClass(Class *cl)
{
    RemoveClass(cl);
    FreeClass(cl);
}