[asterisk-commits] mmichelson: branch 1.6.2 r188105 - in /branches/1.6.2: ./ res/res_musiconhold.c

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


Author: mmichelson
Date: Mon Apr 13 14:33:19 2009
New Revision: 188105

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=188105
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.2/   (props changed)
    branches/1.6.2/res/res_musiconhold.c

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

Modified: branches/1.6.2/res/res_musiconhold.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.2/res/res_musiconhold.c?view=diff&rev=188105&r1=188104&r2=188105
==============================================================================
--- branches/1.6.2/res/res_musiconhold.c (original)
+++ branches/1.6.2/res/res_musiconhold.c Mon Apr 13 14:33:19 2009
@@ -1072,7 +1072,9 @@
 		if (!mohclass->delete) {
  			ast_log(LOG_WARNING, "Music on Hold class '%s' already exists\n", moh->name);
 			mohclass = mohclass_unref(mohclass, "unreffing mohclass we just found by name");
-			moh = mohclass_unref(moh, "unreffing potential new moh class (it is a duplicate)");
+			if (unref) {
+				moh = mohclass_unref(moh, "unreffing potential new moh class (it is a duplicate)");
+			}
 			return -1;
 		}
 		mohclass = mohclass_unref(mohclass, "Unreffing mohclass we just found by name");




More information about the asterisk-commits mailing list