[Libreoffice-commits] core.git: sd/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 25 19:14:31 UTC 2021


 sd/source/filter/pdf/sdpdffilter.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit c38d0d501f5eca648bdf0fd2914b57e06f505f7e
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jun 25 15:54:26 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jun 25 21:13:52 2021 +0200

    new doesn't return null on failure
    
    Change-Id: I9d77274f41fe66251eeb63a8f17abb331044cd27
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117903
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sd/source/filter/pdf/sdpdffilter.cxx b/sd/source/filter/pdf/sdpdffilter.cxx
index 9725bcc8b998..eb64897db853 100644
--- a/sd/source/filter/pdf/sdpdffilter.cxx
+++ b/sd/source/filter/pdf/sdpdffilter.cxx
@@ -85,8 +85,6 @@ bool SdPdfFilter::Import()
 
         SdrGrafObj* pSdrGrafObj = new SdrGrafObj(pPage->getSdrModelFromSdrPage(), rGraphic,
                                                  tools::Rectangle(Point(), aSizeHMM));
-        if (!pSdrGrafObj) // out of memory
-            return false;
 
         pSdrGrafObj->SetResizeProtect(true);
         pSdrGrafObj->SetMoveProtect(true);


More information about the Libreoffice-commits mailing list