[asterisk-commits] branch file/coremedia - r7316 /team/file/coremedia/coremedia.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Dec 3 16:19:04 CST 2005


Author: file
Date: Sat Dec  3 16:19:03 2005
New Revision: 7316

URL: http://svn.digium.com/view/asterisk?rev=7316&view=rev
Log:
Actually destroy private instance of shim if allocated

Modified:
    team/file/coremedia/coremedia.c

Modified: team/file/coremedia/coremedia.c
URL: http://svn.digium.com/view/asterisk/team/file/coremedia/coremedia.c?rev=7316&r1=7315&r2=7316&view=diff
==============================================================================
--- team/file/coremedia/coremedia.c (original)
+++ team/file/coremedia/coremedia.c Sat Dec  3 16:19:03 2005
@@ -128,6 +128,8 @@
   current = shim;
   while (current) {
     /* If an instance is allocated - destroy it */
+    if (current->pvt != NULL && current->destroy != NULL)
+      current->destroy(current->pvt);
     previous = current;
     current = current->next;
     /* Free the used memory */



More information about the asterisk-commits mailing list