/*
    Copyright (C) 1995-2007, The AROS Development Team. All rights reserved.

    Desc: OOP function OOP_ReleaseAttrBases
*/
#include <proto/exec.h>
#include <exec/memory.h>
#include <aros/libcall.h>
#include <aros/debug.h>

#include "intern.h"
#include "hash.h"
/*****************************************************************************

    NAME */
#include <oop/oop.h>
#include <proto/oop.h>

        AROS_LH1(VOID, OOP_ReleaseAttrBases,

/*  SYNOPSIS */
        AROS_LHA(const struct OOP_ABDescr *, abd, A0),

/*  LOCATION */
        struct Library *, OOPBase, 19, OOP)

/*  FUNCTION

    INPUTS

    RESULT

    NOTES

    EXAMPLE

    BUGS

    SEE ALSO

    INTERNALS

    HISTORY

******************************************************************************/
{
    AROS_LIBFUNC_INIT
    
    
    for (; abd->interfaceID; abd ++)
    {
        if ( *abd->attrBase != 0 )
        {
            OOP_ReleaseAttrBase(abd->interfaceID);
            *abd->attrBase = 0;
        }
    }
    
    
    AROS_LIBFUNC_EXIT

} /* OOP_ReleaseAttrBases  */

