celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abroekh...@apache.org
Subject svn commit: r1658957 - /celix/trunk/framework/private/src/framework.c
Date Wed, 11 Feb 2015 13:47:40 GMT
Author: abroekhuis
Date: Wed Feb 11 13:47:40 2015
New Revision: 1658957

URL: http://svn.apache.org/r1658957
Log:
CELIX-219: Added destroy calls for mutexes/condititions

To prevent memory leaks, during shutdown all muteness and conditions need to be destroyed
by the framework

Modified:
    celix/trunk/framework/private/src/framework.c

Modified: celix/trunk/framework/private/src/framework.c
URL: http://svn.apache.org/viewvc/celix/trunk/framework/private/src/framework.c?rev=1658957&r1=1658956&r2=1658957&view=diff
==============================================================================
--- celix/trunk/framework/private/src/framework.c (original)
+++ celix/trunk/framework/private/src/framework.c Wed Feb 11 13:47:40 2015
@@ -281,6 +281,14 @@ celix_status_t framework_destroy(framewo
 	if (logger == NULL) {
 		free(framework->logger);
 	}
+
+	celixThreadCondition_destroy(&framework->dispatcher);
+	celixThreadMutex_destroy(&framework->dispatcherLock);
+	celixThreadMutex_destroy(&framework->installRequestLock);
+	celixThreadMutex_destroy(&framework->bundleLock);
+	celixThreadMutex_destroy(&framework->mutex);
+	celixThreadCondition_destroy(&framework->condition);
+
 	free(framework);
 
 	return status;



Mime
View raw message