[asterisk-scf-commits] asterisk-scf/release/media_operations_core.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Sep 21 18:33:37 CDT 2011


branch "master" has been updated
       via  52a1c399215cca3fd4c3627818639113e30d1148 (commit)
      from  e1cb6f9361e048b2a93abdd58f7050ef4e81a9c2 (commit)

Summary of changes:
 src/resample.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 52a1c399215cca3fd4c3627818639113e30d1148
Author: Brent Eagles <beagles at digium.com>
Date:   Wed Sep 21 20:43:00 2011 -0230

    Fix what would probably cause a problem if pj lib's function doesn't check for
    null.

diff --git a/src/resample.cpp b/src/resample.cpp
index 5d986d1..754d48f 100644
--- a/src/resample.cpp
+++ b/src/resample.cpp
@@ -63,7 +63,10 @@ private:
 
         ~Resampler()
         {
-            pj_pool_release(mPool);
+            if (mPool)
+            {
+                pj_pool_release(mPool);
+            }
         }
 
         FramePtr translate(const FramePtr inFrame)

-----------------------------------------------------------------------


-- 
asterisk-scf/release/media_operations_core.git



More information about the asterisk-scf-commits mailing list