VirtualBox

Changeset 74781 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Oct 12, 2018 8:44:00 AM (6 years ago)
Author:
vboxsync
Message:

VideoRec/Main: Fixed a crash in WebMWriter::Close().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/WebMWriter.cpp

    r70623 r74781  
    148148
    149149    WebMTracks::iterator itTrack = CurSeg.mapTracks.begin();
    150     for (; itTrack != CurSeg.mapTracks.end(); ++itTrack)
     150    while (itTrack != CurSeg.mapTracks.end())
    151151    {
    152152        WebMTrack *pTrack = itTrack->second;
    153 
    154         delete pTrack;
     153        if (pTrack) /* Paranoia. */
     154            delete pTrack;
     155
    155156        CurSeg.mapTracks.erase(itTrack);
     157
     158        itTrack = CurSeg.mapTracks.begin();
    156159    }
    157160
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette