Re: [Libpapyrus-devel] Patch for invalid list iterator usage
Status: Beta
Brought to you by:
rvinyard
From: Rick L. V. Jr. <rvi...@cs...> - 2009-03-17 16:29:10
|
Tim Niemueller wrote: > Rick L. Vinyard, Jr. schrieb: >> I'm looking at the list patch first. >> >> --- papyrus-0.10.2/papyrus/drawableset.cpp 2009-02-05 >> 23:48:22.000000000 +0100 >> +++ papyrus-0.10.2-drawable-init/papyrus/drawableset.cpp >> 2009-03-17 >> 14:11:26.000000000 +0100 >> @@ -24,7 +24,14 @@ >> >> DrawableSet::DrawableSet(pointer to_copy) >> { >> - if ( to_copy ) m_drawables = to_copy->m_drawables; >> + if ( to_copy ) >> + { >> + m_drawables = to_copy->m_drawables; >> + } >> + else >> + { >> + m_drawables.clear(); >> + } >> } > > That's just a left-over from the first attempts to fix the segfault... > This can be thrown out. > Sounds good. I think I have everything from this patch in subversion now. |