diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-24 13:46:17 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-24 13:51:12 +0200 |
commit | da5220d7d2707dd87e3f322141edc5f3ccbe1df4 (patch) | |
tree | d7cd9772d780337375a0a57861e4d018f03bcf55 /sc | |
parent | bbeb2ea423d106fd4e7f35fedc4ba9bf58362ab5 (diff) |
tubes: fix crash: do not delete boost::shared_ptr's pointer
This prevents a crash on exit for INTERCEPT=demo but there is another:
Open more calc documents, close one, and then type something -> crash.
I wonder if this was working in the past.
Change-Id: I599b1babb02488d317c6684aba7431b5de7af15b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/collab/sendfunc.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/collab/sendfunc.cxx b/sc/source/ui/collab/sendfunc.cxx index a0bd1f2d66be..a366956821ad 100644 --- a/sc/source/ui/collab/sendfunc.cxx +++ b/sc/source/ui/collab/sendfunc.cxx @@ -205,7 +205,9 @@ ScDocFuncSend::~ScDocFuncSend() fprintf( stderr, "Sender destroyed !\n" ); if (mpConference) mpConference->close(); - delete mpDirect; + + if (!dynamic_cast<ScDocFuncDemo*> (mpDirect)) + delete mpDirect; } void ScDocFuncSend::SetCollaboration( TeleConference* pConference ) |