diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-26 00:26:30 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-26 19:05:44 +0200 |
commit | e642b9d97d8ac56fda6b5c1e0859f99abc5c47e3 (patch) | |
tree | e55a182f7e4d7e794d11ca8502998b26163114de /vcl/headless | |
parent | b2ad5380ad70de51075d67bbd9dd2145d1484b6a (diff) |
Release style and CGContext resources in dtor
Change-Id: I40fa43aaccda42e276f729cb7948101482c6ce5c
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svpgdi.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index 58f496e13ca1..f3abe767e306 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -96,6 +96,18 @@ SvpSalGraphics::SvpSalGraphics() : SvpSalGraphics::~SvpSalGraphics() { +#ifdef IOS + if(m_style) + { + delete m_style; + m_style = NULL; + } + if(mrContext) + { + CGContextRelease( mrContext ); + mrContext = NULL; + } +#endif } void SvpSalGraphics::setDevice( basebmp::BitmapDeviceSharedPtr& rDevice ) |