diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-07-23 19:54:12 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-07-28 09:07:28 +0300 |
commit | 9ac9625caf554f15c6e3262517c6dac8943390f5 (patch) | |
tree | d8a325c5142b490ae1d0e1bfe1da5d71edf8e39b /vcl | |
parent | aef42e168d1dd26ed89b2f0574dbd066828b8882 (diff) |
No KillPicture() in the 10.7 SDK, so just leak for now...
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/aqua/source/dtrans/PictToBmpFlt.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/aqua/source/dtrans/PictToBmpFlt.cxx b/vcl/aqua/source/dtrans/PictToBmpFlt.cxx index 51b294258a04..196ec2e55865 100644 --- a/vcl/aqua/source/dtrans/PictToBmpFlt.cxx +++ b/vcl/aqua/source/dtrans/PictToBmpFlt.cxx @@ -118,10 +118,22 @@ bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp, rtl_copyMemory(aPict.getArray(), ((sal_Int8*)*hPict), sz); HUnlock((Handle)hPict); +#if MACOSX_SDK_VERSION < 1070 // Release the data associated with the picture // Note: This function is deprecated in Mac OS X // 10.4. + + // How nice. This whole thing needs to be rewritten I guess. Or + // does this code even get invoked on current OSes? Given that + // KillPicture() was deprecated already in 10.4, back when + // somebody was actually working on this code, hopefulluy + // knowing what he/she was doing, was it really not known that + // the stuff used here is going to go away? + KillPicture(hPict); +#else + SAL_WARN("vcl", "Here we used to call the deprecated KillPicture(), no idea what to do, so leaking..."); +#endif result = true; } |