From 4984c1ba6c84a3ae91f9afd4da2ea718c98c97a7 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 30 Jan 2008 08:02:42 +0000 Subject: - renamed Msg object to usual all-lowercase object name (else we ran into troubles with the framework, also it was somewhat ugly...) - fixed a memory leak in object destruction (was recently introduced by object naming, not present in any released version) --- obj.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'obj.c') diff --git a/obj.c b/obj.c index 9181dec9..1ae3b109 100644 --- a/obj.c +++ b/obj.c @@ -116,6 +116,21 @@ rsRetVal objInfoSetMethod(objInfo_t *pThis, objMethod_t objMethod, rsRetVal (*pH return RS_RET_OK; } +/* destruct the base object properties. + * rgerhards, 2008-01-29 + */ +rsRetVal +objDestructObjSelf(obj_t *pThis) +{ + DEFiRet; + + ISOBJ_assert(pThis); + if(pThis->pszName != NULL) + free(pThis->pszName); + + RETiRet; +} + /* --------------- object serializiation / deserialization support --------------- */ -- cgit v1.2.3