[asterisk-scf-commits] asterisk-scf/integration/media_rtp_pjmedia.git branch "retry_deux" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Apr 30 12:08:30 CDT 2012


branch "retry_deux" has been updated
       via  62a6b9f75cc1ce2ac25923e6c67b0b1fcb18eca1 (commit)
      from  46070fea0504e5a8a3ef5c98013fcdf76e5c6931 (commit)

Summary of changes:
 src/RTPStateReplicatorListener.cpp |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 62a6b9f75cc1ce2ac25923e6c67b0b1fcb18eca1
Author: Brent Eagles <beagles at digium.com>
Date:   Mon Apr 30 14:37:01 2012 -0230

    Fixed a silly bug in the replication listener item that would cause crashes
    if an item was destroyed before it had setSession() called on it or
    setSession() with a nil reference.

diff --git a/src/RTPStateReplicatorListener.cpp b/src/RTPStateReplicatorListener.cpp
index 07ec361..4b5de4b 100644
--- a/src/RTPStateReplicatorListener.cpp
+++ b/src/RTPStateReplicatorListener.cpp
@@ -39,7 +39,19 @@ public:
 
     ~RTPStateReplicatorItem()
     {
-        mSession->destroy();
+        if (mSession)
+        {
+            try
+            {
+                mSession->destroy();
+            }
+            catch (...)
+            {
+                //
+                // Ignore this... there isn't much we can do inside a destructor anyway.
+                //
+            }
+        }
     }
 
     //

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


-- 
asterisk-scf/integration/media_rtp_pjmedia.git



More information about the asterisk-scf-commits mailing list