[SOLVED] Re: About coverity 705732 (svdundo.cxx from svx module)

2013-03-13 Thread Julien Nabet
On 13/03/2013 17:18, Thorsten Behrens wrote: Julien Nabet wrote: So I must recognize I didn't spend hours about this one just grabbed a coverity report and tried to find a fix entirely "locally". So the nobrainer fix would be your 1) and 2) then. I pushed the patch on master with 1) and 2) (s

Re: About coverity 705732 (svdundo.cxx from svx module)

2013-03-13 Thread Thorsten Behrens
Julien Nabet wrote: > So I must recognize I didn't spend hours about this one just grabbed > a coverity report and tried to find a fix entirely "locally". > So the nobrainer fix would be your 1) and 2) then. Cheers, -- Thorsten signature.asc Description: Digital signature __

Re: About coverity 705732 (svdundo.cxx from svx module)

2013-03-13 Thread julien2412
Thorsten, Caolán, Following your respective feedback about this, thank you for this, I thought about "gerrit submitting" on master as it is since Caolán seems quite confident and it may allow an easier review. In general, in bug triaging, cppcheck and very recently scan coverity, my purpose is to

Re: About coverity 705732 (svdundo.cxx from svx module)

2013-03-13 Thread Caolán McNamara
On Tue, 2013-03-12 at 13:43 -0700, julien2412 wrote: > I noticed several things: > 1) we could replace "if (pText1)" by "if (pNewText)". Of course if blocks > must be changed > 2) if pText1 corresponds to a new OutlinerParaObject and !pText, it seems > there's a leak > 3) why pObj->ActionChanged()

Re: About coverity 705732 (svdundo.cxx from svx module)

2013-03-12 Thread Thorsten Behrens
Julien Nabet wrote: > I noticed several things: > 1) we could replace "if (pText1)" by "if (pNewText)". Of course if blocks > must be changed > 2) if pText1 corresponds to a new OutlinerParaObject and !pText, it seems > there's a leak > Yeps. > 3) why pObj->ActionChanged() and ImpShowPageOfThisOb

About coverity 705732 (svdundo.cxx from svx module)

2013-03-12 Thread julien2412
Hello, Scan coverity reported this: leaked_storage: Variable "pText1" going out of scope leaks the storage it points to. See http://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdundo.cxx#1137 1137 void SdrUndoObjSetText::Redo() 1138 { 1139 // copy text for Undo, because the