[asterisk-commits] russell: branch russell/indications r174579 - in /team/russell/indications: c...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 10 11:44:19 CST 2009


Author: russell
Date: Tue Feb 10 11:44:18 2009
New Revision: 174579

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=174579
Log:
fix up chan_unistim

Modified:
    team/russell/indications/channels/chan_unistim.c
    team/russell/indications/main/indications.c

Modified: team/russell/indications/channels/chan_unistim.c
URL: http://svn.digium.com/svn-view/asterisk/team/russell/indications/channels/chan_unistim.c?view=diff&rev=174579&r1=174578&r2=174579
==============================================================================
--- team/russell/indications/channels/chan_unistim.c (original)
+++ team/russell/indications/channels/chan_unistim.c Tue Feb 10 11:44:18 2009
@@ -5222,6 +5222,9 @@
 		ast_log(LOG_ERROR, "An Unistim device must have at least one line!\n");
 		ast_mutex_destroy(&l->lock);
 		ast_free(l);
+		if (d->tz) {
+			d->tz = ast_tone_zone_unref(d->tz);
+		}
 		ast_free(d);
 		return NULL;
 	}
@@ -5239,6 +5242,9 @@
 			ast_log(LOG_ERROR, "You must specify the mac address with device=\n");
 			ast_mutex_destroy(&l->lock);
 			ast_free(l);
+			if (d->tz) {
+				d->tz = ast_tone_zone_unref(d->tz);
+			}
 			ast_free(d);
 			return NULL;
 		} else
@@ -5460,6 +5466,9 @@
 					d2 = d2->next;
 				}
 			}
+			if (d->tz) {
+				d->tz = ast_tone_zone_unref(d->tz);
+			}
 			ast_free(d);
 			d = devices;
 			continue;

Modified: team/russell/indications/main/indications.c
URL: http://svn.digium.com/svn-view/asterisk/team/russell/indications/main/indications.c?view=diff&rev=174579&r1=174578&r2=174579
==============================================================================
--- team/russell/indications/main/indications.c (original)
+++ team/russell/indications/main/indications.c Tue Feb 10 11:44:18 2009
@@ -26,7 +26,6 @@
 /*
  * XXX TODO
  *  - API documentation
- *  - fix users of the API to account for ref count (only chan_unistim left)
  *  - change the code such that tone definitions are only parsed once
  *    instead of every time they are used.
  */




More information about the asterisk-commits mailing list