chart2/source/view/charttypes/VSeriesPlotter.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f1c011eb64b837bd375a6afbfa8cf784e3b723b8
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Feb 29 20:04:06 2020 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Mar 1 16:40:37 2020 +0100

    cid#1459020 Resource Leaks
    
    Change-Id: I124a61ee34b315c4853ee0f1d96eb9ee45a76e8c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89764
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx 
b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 2c46743696f6..c971bf04e1ec 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -754,7 +754,8 @@ uno::Reference< drawing::XShape > 
VSeriesPlotter::createDataLabel( const uno::Re
                         aPoints[0][1].X = nX2;
                         aPoints[0][1].Y = nY2;
 
-                        m_pShapeFactory->createLine2D(xTarget, aPoints, new 
VLineProperties);
+                        VLineProperties aVLineProperties;
+                        m_pShapeFactory->createLine2D(xTarget, aPoints, 
&aVLineProperties);
                     }
                 }
             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to