summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/localtime.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-10-02 22:43:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-10-02 23:19:52 +0100
commit19a23df7f2dcdba88edd507ddd6d6201f1eeb1bc (patch)
tree7139adb6e78ba3a69ba21602f645a8ed5571ae47 /lotuswordpro/source/filter/localtime.cxx
parentvalgrind: fix leak (diff)
downloadcore-19a23df7f2dcdba88edd507ddd6d6201f1eeb1bc.tar.gz
core-19a23df7f2dcdba88edd507ddd6d6201f1eeb1bc.zip
valgrind: fix some leaks
Diffstat (limited to 'lotuswordpro/source/filter/localtime.cxx')
-rw-r--r--lotuswordpro/source/filter/localtime.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/localtime.cxx b/lotuswordpro/source/filter/localtime.cxx
index 1eee2bfab2d4..9d25acaa054b 100644
--- a/lotuswordpro/source/filter/localtime.cxx
+++ b/lotuswordpro/source/filter/localtime.cxx
@@ -185,6 +185,7 @@ bool LtgLocalTime(long rtime,LtTm& rtm)
{
TimeZone* pLocalZone = TimeZone::createDefault();
long offset = (pLocalZone->getRawOffset())/1000;
+ delete pLocalZone;
long ltime = rtime + offset;
return LtgGmTime(ltime,rtm);
}