Ignore:
Timestamp:
Nov 28, 2006, 6:02:20 PM (19 years ago)
Author:
cinc
Message:

Added delete() method to NOMObject so objects can be destroyed in a correct way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom/class_c/nomobj.c

    r94 r120  
    7272}
    7373
     74NOM_Scope void NOMLINK impl_NOMObject_delete(NOMObject* nomSelf, CORBA_Environment *ev)
     75{
     76/* NOMObjectData* nomThis=NOMObjectGetData(nomSelf); */
    7477
     78  /* Give object the chance to free resources */
     79  _nomUninit(nomSelf, NULLHANDLE);
     80
     81  /* And now delete the object */
     82  /*
     83    FIXME: we should probably call a class function here, so the
     84    class can keep track of objects.
     85   */
     86  NOMFree(nomSelf);
     87}
     88
     89
Note: See TracChangeset for help on using the changeset viewer.