[asterisk-commits] mmichelson: branch 1.6.0 r188103 - in /branches/1.6.0: ./ res/res_musiconhold.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 13 14:32:46 CDT 2009


Author: mmichelson
Date: Mon Apr 13 14:32:43 2009
New Revision: 188103

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=188103
Log:
Merged revisions 188102 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188102 | mmichelson | 2009-04-13 14:31:48 -0500 (Mon, 13 Apr 2009) | 5 lines
  
  Fix another crash related to cached realtime music on hold.
  
  This was another off-by-one problem caused by moh_register.
........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/res/res_musiconhold.c

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/res/res_musiconhold.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/res/res_musiconhold.c?view=diff&rev=188103&r1=188102&r2=188103
==============================================================================
--- branches/1.6.0/res/res_musiconhold.c (original)
+++ branches/1.6.0/res/res_musiconhold.c Mon Apr 13 14:32:43 2009
@@ -1090,7 +1090,9 @@
 		if (!mohclass->delete) {
  			ast_log(LOG_WARNING, "Music on Hold class '%s' already exists\n", moh->name);
 			mohclass = mohclass_unref(mohclass);
-			moh = mohclass_unref(moh);
+			if (unref) {
+				moh = mohclass_unref(moh);
+			}
 			return -1;
 		}
 		mohclass = mohclass_unref(mohclass);




More information about the asterisk-commits mailing list