This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 2650be22dd320a67f3be2a7f107d6c73612baebf
Author: Pedro Giffuni <[email protected]>
AuthorDate: Fri Dec 25 23:01:57 2015 +0000

    Resource leak
    
    CID:    705753
    
    git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1721695 
13f79535-47bb-0310-9956-ffa450edef68
    (cherry picked from commit 2fcb977626ec12353bc2f8d399110989e216fe73)
---
 main/sw/source/filter/ww8/ww8par5.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main/sw/source/filter/ww8/ww8par5.cxx 
b/main/sw/source/filter/ww8/ww8par5.cxx
index 555b9062b6..1538cc955e 100644
--- a/main/sw/source/filter/ww8/ww8par5.cxx
+++ b/main/sw/source/filter/ww8/ww8par5.cxx
@@ -3377,8 +3377,10 @@ eF_ResT SwWW8ImplReader::Read_F_Tox( WW8FieldDesc* pF, 
String& rStr )
                                 }
                             }
                             if ( pForm )
+                            {
                                 pBase->SetTOXForm( *pForm );
-                            // <--
+                                delete pForm;
+                            }
                         }
 
                         if (eCreateFrom)

Reply via email to