diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-04 16:44:41 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-04 16:44:41 +0000 |
commit | 3b8457d1da7f81f9d5c48ff9f1d84cb838942803 (patch) | |
tree | 457fc601c430a59d25c4a7466a2ebfdc1bdb5b14 /obj.h | |
parent | eb9f97ee2d34f00ca823ebead26e133e4b9a8495 (diff) | |
download | rsyslog-3b8457d1da7f81f9d5c48ff9f1d84cb838942803.tar.gz rsyslog-3b8457d1da7f81f9d5c48ff9f1d84cb838942803.tar.xz rsyslog-3b8457d1da7f81f9d5c48ff9f1d84cb838942803.zip |
utilized the new auto-destruction capability so that the queue can now
destruct user objects if needed
Diffstat (limited to 'obj.h')
-rw-r--r-- | obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ typedef struct obj { /* the dummy struct that each derived class can be casted t #define BEGINobjInstance objInfo_t *pObjInfo /* must be called in Constructor: */ #define objConstructSetObjInfo(pThis) ((obj_t*) (pThis))->pObjInfo = pObjInfoOBJ; -#define objDestruct(pThis) (((obj_t*) (pThis))->pObjInfo->objMethods[objMethod_DESTRUCT]) +#define objDestruct(pThis) (((obj_t*) (pThis))->pObjInfo->objMethods[objMethod_DESTRUCT])(pThis) #define objSerialize(pThis) (((obj_t*) (pThis))->pObjInfo->objMethods[objMethod_SERIALIZE]) /* class initializer */ #define PROTOTYPEObjClassInit(objName) rsRetVal objName##ClassInit(void) |