Changeset 120


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.

Location:
trunk/nom
Files:
2 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
  • trunk/nom/idl/nomobj.idl

    r94 r120  
    4646        /* Return the size of the object. That is sizeof(mTab*)+sizeof(all instance vars) */
    4747        long nomGetSize();
    48 
     48  void delete();
    4949#if 0
    5050        NOMOVERRIDE(wpEchoString);
Note: See TracChangeset for help on using the changeset viewer.