[asterisk-commits] dlee: branch dlee/stasis-core r382490 - /team/dlee/stasis-core/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 6 09:24:35 CST 2013


Author: dlee
Date: Wed Mar  6 09:24:31 2013
New Revision: 382490

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382490
Log:
Should unsubscribe caching topic before final unref

Modified:
    team/dlee/stasis-core/main/stasis_cache.c

Modified: team/dlee/stasis-core/main/stasis_cache.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-core/main/stasis_cache.c?view=diff&rev=382490&r1=382489&r2=382490
==============================================================================
--- team/dlee/stasis-core/main/stasis_cache.c (original)
+++ team/dlee/stasis-core/main/stasis_cache.c Wed Mar  6 09:24:31 2013
@@ -51,6 +51,7 @@
 
 static void stasis_caching_topic_dtor(void *obj) {
 	struct stasis_caching_topic *caching_topic = obj;
+	ast_assert(caching_topic->sub == NULL);
 	ao2_cleanup(caching_topic->cache);
 	caching_topic->cache = NULL;
 	ao2_cleanup(caching_topic->topic);




More information about the asterisk-commits mailing list