Changeset 222 for trunk/nom/class_c/nomobj.c
- Timestamp:
- Feb 4, 2007, 10:26:27 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/class_c/nomobj.c
r219 r222 45 45 46 46 #include "nomobj.ih" 47 48 #include "gc.h" 47 49 48 50 /** … … 95 97 { 96 98 /* NOMObjectData* nomThis=NOMObjectGetData(nomSelf); */ 99 GC_PTR oldData; 100 GC_finalization_proc oldFinalizerFunc; 101 NOMClassPriv *ncp; 102 103 /* Unregister finalizer if the class uses nomUnInit. This is done so nomUnInit isn't 104 called again when the memory is eventually collected by the GC. */ 105 ncp=(NOMClassPriv*)nomSelf->mtab->nomClsInfo; 106 if(ncp->ulClassFlags & NOM_FLG_NOMUNINIT_OVERRIDEN){ 107 /* A NULL finalizer function removes the finalizer */ 108 GC_register_finalizer(nomSelf, NULL, NULL, &oldFinalizerFunc, &oldData); 109 } 97 110 98 111 /* Give object the chance to free resources */
Note:
See TracChangeset
for help on using the changeset viewer.