From c6bebca3c76985016970d87e75dd025a169790b0 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 20 Feb 2008 14:02:33 +0000 Subject: changed rsCStrDestruct() to use the new interface conventions --- msg.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'msg.c') diff --git a/msg.c b/msg.c index b23d2724..505f878a 100644 --- a/msg.c +++ b/msg.c @@ -274,15 +274,15 @@ CODESTARTobjDestruct(msg) if(pThis->pszPRI != NULL) free(pThis->pszPRI); if(pThis->pCSProgName != NULL) - rsCStrDestruct(pThis->pCSProgName); + rsCStrDestruct(&pThis->pCSProgName); if(pThis->pCSStrucData != NULL) - rsCStrDestruct(pThis->pCSStrucData); + rsCStrDestruct(&pThis->pCSStrucData); if(pThis->pCSAPPNAME != NULL) - rsCStrDestruct(pThis->pCSAPPNAME); + rsCStrDestruct(&pThis->pCSAPPNAME); if(pThis->pCSPROCID != NULL) - rsCStrDestruct(pThis->pCSPROCID); + rsCStrDestruct(&pThis->pCSPROCID); if(pThis->pCSMSGID != NULL) - rsCStrDestruct(pThis->pCSMSGID); + rsCStrDestruct(&pThis->pCSMSGID); funcDeleteMutex(pThis); } else { pThis = NULL; /* tell framework not to destructing the object! */ @@ -480,8 +480,7 @@ static rsRetVal aquirePROCIDFromTAG(msg_t *pM) * the buffer and simply return. Note that this is NOT an error * case! */ - rsCStrDestruct(pM->pCSPROCID); - pM->pCSPROCID = NULL; + rsCStrDestruct(&pM->pCSPROCID); FINALIZE; } -- cgit