[asterisk-commits] dlee: branch dlee/cache-pattern-fix r396154 - /team/dlee/cache-pattern-fix/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 2 15:57:27 CDT 2013


Author: dlee
Date: Fri Aug  2 15:57:25 2013
New Revision: 396154

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396154
Log:
Fixed destruction order issue

Modified:
    team/dlee/cache-pattern-fix/main/stasis_cache_pattern.c

Modified: team/dlee/cache-pattern-fix/main/stasis_cache_pattern.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/cache-pattern-fix/main/stasis_cache_pattern.c?view=diff&rev=396154&r1=396153&r2=396154
==============================================================================
--- team/dlee/cache-pattern-fix/main/stasis_cache_pattern.c (original)
+++ team/dlee/cache-pattern-fix/main/stasis_cache_pattern.c Fri Aug  2 15:57:25 2013
@@ -172,12 +172,11 @@
 		return;
 	}
 
-	stasis_caching_unsubscribe(one->topic_cached);
-	one->topic_cached = NULL;
 	stasis_unsubscribe(one->forward_topic_to_all);
 	one->forward_topic_to_all = NULL;
 	stasis_unsubscribe(one->forward_cached_to_all);
 	one->forward_cached_to_all = NULL;
+	stasis_caching_unsubscribe(one->topic_cached);
 }
 
 struct stasis_topic *stasis_cp_single_topic(struct stasis_cp_single *one)




More information about the asterisk-commits mailing list