View | Details | Raw Unified | Return to issue 120098
Collapse All | Expand All

(-)sw/source/filter/ww8/wrtww8.cxx (-2 / +3 lines)
Lines 2731-2739 Link Here
2731
            #10570# Similiarly having msvbasic storage seems to also trigger
2731
            #10570# Similiarly having msvbasic storage seems to also trigger
2732
            creating this stream
2732
            creating this stream
2733
            */
2733
            */
2734
            GetWriter().GetStorage().OpenSotStorage(CREATE_CONST_ASC(SL::aObjectPool),
2734
                // memory leak #i120098#, the unnamed obj will be released in destructor.
2735
                xEscherStg = GetWriter().GetStorage().OpenSotStorage(CREATE_CONST_ASC(SL::aObjectPool),
2735
                STREAM_READWRITE | STREAM_SHARE_DENYALL);
2736
                STREAM_READWRITE | STREAM_SHARE_DENYALL);
2736
        }
2737
		}
2737
2738
2738
        // dggInfo - escher stream
2739
        // dggInfo - escher stream
2739
        WriteEscher();
2740
        WriteEscher();
(-)sw/source/filter/ww8/wrtww8.hxx (+3 lines)
Lines 926-931 Link Here
926
    SwWW8Writer        *m_pWriter;      ///< Pointer to the writer
926
    SwWW8Writer        *m_pWriter;      ///< Pointer to the writer
927
    WW8AttributeOutput *m_pAttrOutput;  ///< Converting attributes to stream data
927
    WW8AttributeOutput *m_pAttrOutput;  ///< Converting attributes to stream data
928
928
929
private:
930
	SvStorageRef       xEscherStg;      /// memory leak #i120098#, to hold the reference to unnamed SotStorage obj
931
929
public:
932
public:
930
    /// Access to the attribute output class.
933
    /// Access to the attribute output class.
931
    virtual AttributeOutputBase& AttrOutput() const;
934
    virtual AttributeOutputBase& AttrOutput() const;

Return to issue 120098