https://bugs.kde.org/show_bug.cgi?id=509526

            Bug ID: 509526
           Summary: calligra-25.08.1/libs/vectorimage/libwmf/WmfPainterBac
                    kend.cpp:70: use after delete ??
    Classification: Applications
           Product: calligracommon
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Static analyser cppcheck says:

calligra-25.08.1/libs/vectorimage/libwmf/WmfPainterBackend.cpp:70:15: error:
Dereferencing 'mPainter' after it is deallocated / released [deallocuse]

Source code is

    if (mPainter && mIsInternalPainter)
        delete mPainter;

    mTarget = mPainter->device();

Suggest code rework.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to