[svn-commits] dlee: branch dlee/ASTERISK-21970 r394441 - /team/dlee/ASTERISK-21970/res/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 16 10:28:21 CDT 2013


Author: dlee
Date: Tue Jul 16 10:28:20 2013
New Revision: 394441

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394441
Log:
Clean up on both registration and unregistration

Modified:
    team/dlee/ASTERISK-21970/res/res_stasis.c

Modified: team/dlee/ASTERISK-21970/res/res_stasis.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ASTERISK-21970/res/res_stasis.c?view=diff&rev=394441&r1=394440&r2=394441
==============================================================================
--- team/dlee/ASTERISK-21970/res/res_stasis.c (original)
+++ team/dlee/ASTERISK-21970/res/res_stasis.c Tue Jul 16 10:28:20 2013
@@ -694,6 +694,10 @@
 		}
 	}
 
+	/* We lazily clean up the apps_registry, because it's good enough to
+	 * prevent memory leaks, and we're lazy.
+	 */
+	cleanup();
 	return 0;
 }
 
@@ -714,8 +718,8 @@
 
 	app_deactivate(app);
 
-	/* We lazily clean up the apps_registry, because it's good enough to
-	 * prevent memory leaks, and we're lazy.
+	/* There's a decent chance that app is ready for cleanup. Go ahead
+	 * and clean up, just in case
 	 */
 	cleanup();
 }




More information about the svn-commits mailing list