Issue 113685

Summary: Static BitmapEx causes crash on exit.
Product: Draw Reporter: groucho266
Component: codeAssignee: groucho266
Status: RESOLVED FIXED QA Contact: issues@graphics <issues>
Severity: Trivial    
Priority: P3 CC: arielch, Armin.Le.Grand, awf.aoo, hdu, issues, rbircher
Version: OOo 1.0.0   
Target Milestone: 3.4.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description groucho266 2010-08-05 14:56:51 UTC
The soft shadow, introduced by issue 110498, uses indirectly a static BitmapEx
object.  This causes a crash on some systems when the office is exited.

See issue 112758 for a description of the general problem with static BitmapEx

The BitmapEx object in question is not static in itself, but is held by a static
drawinglayer::primitive2d::DiscreteShadow object.  See
ViewContactOfPageShadow::createViewIndependentPrimitive2DSequence() for its
Comment 1 groucho266 2010-08-05 15:00:24 UTC
Fixed by using the vcl::DeleteOnDeinit<> template for the DescreteShadow object.
Comment 2 Raphael Bircher 2013-04-12 00:43:06 UTC

A question, can you provide us a patch?

Greetings Raphael
Comment 3 Ariel Constenla-Haile 2013-04-12 01:53:27 UTC
(In reply to comment #2)
> Thanks,
> A question, can you provide us a patch?
> Greetings Raphael

groucho266 seems to be Andre (or may be some developer from the Sun impress team). Adding him on Cc.
Comment 4 Armin Le Grand 2013-04-12 08:23:16 UTC
ALG: vcl::DeleteOnDeinit is already used in svx/source/sdr/contact/viewcontactofsdrpage.cxx line 168, seems to be in for quite some time.