Kaydet (Commit) 699e97eb authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Don't forget to dispose the component here.

Otherwise, none of the associated SfxViewFrame, SfxBaseController,
SfxObjectShell, SfxMedium etc would get destroyed which would ultimately
lead to the .~lock.foo file not being deleted upon exit.

But for this to work, the client code has to make sure that its
LibreOfficeDocument instance gets destroyed when it finishes its thing.

Change-Id: Id45eda526c1496712e4314a947e994eba5c3fa68
üst 105b36ce
...@@ -161,6 +161,11 @@ struct LibLODocument_Impl : public _LibreOfficeDocument ...@@ -161,6 +161,11 @@ struct LibLODocument_Impl : public _LibreOfficeDocument
saveAs = doc_saveAs; saveAs = doc_saveAs;
saveAsWithOptions = doc_saveAsWithOptions; saveAsWithOptions = doc_saveAsWithOptions;
} }
~LibLODocument_Impl()
{
mxComponent->dispose();
}
}; };
static void doc_destroy(LibreOfficeDocument *pThis) static void doc_destroy(LibreOfficeDocument *pThis)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment