summaryrefslogtreecommitdiffstats
path: root/obj.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-04 16:44:41 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-04 16:44:41 +0000
commit3b8457d1da7f81f9d5c48ff9f1d84cb838942803 (patch)
tree457fc601c430a59d25c4a7466a2ebfdc1bdb5b14 /obj.h
parenteb9f97ee2d34f00ca823ebead26e133e4b9a8495 (diff)
downloadrsyslog-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/obj.h b/obj.h
index 5f0921f3..43d45bb6 100644
--- a/obj.h
+++ b/obj.h
@@ -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)