From: Mattia Barbon Date: Mon, 18 Jun 2007 19:23:09 +0000 (+0000) Subject: Must update iterator to avoid infinite loop X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ad877f92c670b9da57680e423387eab78bc280d6 Must update iterator to avoid infinite loop in case backend initialization fails. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/mediactrlcmn.cpp b/src/common/mediactrlcmn.cpp index 8812a48efc..6120cada49 100644 --- a/src/common/mediactrlcmn.cpp +++ b/src/common/mediactrlcmn.cpp @@ -254,6 +254,7 @@ const wxClassInfo* wxMediaCtrl::NextBackend(wxClassInfo::const_iterator* it) if ( classInfo->IsKindOf(CLASSINFO(wxMediaBackend)) && classInfo != CLASSINFO(wxMediaBackend) ) { + ++(*it); return classInfo; } }