Changeset 5226


Ignore:
Timestamp:
Dec 31, 2015 2:04:52 AM (5 years ago)
Author:
ming
Message:

Re #1882 (misc): Fixed incorrect loop when destroying streams in case of non-successful stream creation.

Thanks to Dusan Klinec for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/session.c

    r4890 r5226  
    130130        if (status != PJ_SUCCESS) { 
    131131 
    132             for ( --i; i>=0; ++i) { 
     132            for ( --i; i>=0; --i) { 
    133133                pjmedia_stream_destroy(session->stream[i]); 
    134134            } 
Note: See TracChangeset for help on using the changeset viewer.