[asterisk-commits] file: branch file/rtp_engine-mark2 r185781 - /team/file/rtp_engine-mark2/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 1 09:13:59 CDT 2009


Author: file
Date: Wed Apr  1 09:13:55 2009
New Revision: 185781

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=185781
Log:
Only call the engine destroy callback if the instance is actually setup.

Modified:
    team/file/rtp_engine-mark2/main/rtp_engine.c

Modified: team/file/rtp_engine-mark2/main/rtp_engine.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/rtp_engine-mark2/main/rtp_engine.c?view=diff&rev=185781&r1=185780&r2=185781
==============================================================================
--- team/file/rtp_engine-mark2/main/rtp_engine.c (original)
+++ team/file/rtp_engine-mark2/main/rtp_engine.c Wed Apr  1 09:13:55 2009
@@ -258,7 +258,7 @@
 	struct ast_rtp_instance *instance = obj;
 
 	/* Pass us off to the engine to destroy */
-	if (instance->engine->destroy(instance)) {
+	if (instance->data && instance->engine->destroy(instance)) {
 		ast_debug(1, "Engine '%s' failed to destroy RTP instance '%p'\n", instance->engine->name, instance);
 		return;
 	}




More information about the asterisk-commits mailing list