[Libreoffice-commits] core.git: Branch 'aoo/trunk' - 9 commits - basic/source hwpfilter/source sd/source sw/source vcl/source
Pedro Giffuni
pfg at apache.org
Sun Nov 29 14:08:26 PST 2015
basic/source/runtime/iosys.cxx | 1 +
hwpfilter/source/hwpread.cpp | 1 +
sd/source/filter/sdpptwrp.cxx | 1 +
sw/source/ui/dochdl/swdtflvr.cxx | 1 +
sw/source/ui/docvw/romenu.cxx | 1 +
sw/source/ui/envelp/label1.cxx | 2 ++
sw/source/ui/uiview/view0.cxx | 1 +
sw/source/ui/utlui/glbltree.cxx | 1 +
vcl/source/fontsubset/ttcr.cxx | 7 ++++---
9 files changed, 13 insertions(+), 3 deletions(-)
New commits:
commit aedf0b56773481bf22546ab318667cb9c08ae7c5
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Nov 29 20:50:47 2015 +0000
Resource Leak
CID: 983009
diff --git a/hwpfilter/source/hwpread.cpp b/hwpfilter/source/hwpread.cpp
index c1c189a..7e19ed8 100644
--- a/hwpfilter/source/hwpread.cpp
+++ b/hwpfilter/source/hwpread.cpp
@@ -327,6 +327,7 @@ int TxtBox::Read(HWPFile & hwpf)
}
TCell* *pArr = ::comphelper::newArray_null<TCell *>(ncell);
if (!pArr) {
+ delete tbl;
return hwpf.SetState(HWP_InvalidFileFormat);
}
for( ii = 0 ; ii < ncell; ii++)
commit 0eeb0d8792eca2c675a50eb1a8e4a498a49ced8f
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Nov 29 20:47:44 2015 +0000
Resource Leak
CID: 982916
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx
index f404c2a..fd97d85 100644
--- a/basic/source/runtime/iosys.cxx
+++ b/basic/source/runtime/iosys.cxx
@@ -238,6 +238,7 @@ sal_Bool needSecurityRestrictions( void )
oslSecurity aSecurity = osl_getCurrentSecurity();
::rtl::OUString aSystemUser;
sal_Bool bRet = osl_getUserName( aSecurity, &aSystemUser.pData );
+ osl_freeSecurityHandle(aSecurity);
if( !bRet )
{
// No valid security! -> Secure mode!
commit 0bad09dcce5b9fcb8524617db6f937db3adf0e75
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Nov 29 20:44:03 2015 +0000
Resource Leak
CID: 736452
diff --git a/sd/source/filter/sdpptwrp.cxx b/sd/source/filter/sdpptwrp.cxx
index 2a16dcc..ed50a33 100644
--- a/sd/source/filter/sdpptwrp.cxx
+++ b/sd/source/filter/sdpptwrp.cxx
@@ -118,6 +118,7 @@ sal_Bool SdPPTFilter::Import()
if ( !bRet )
mrMedium.SetError( SVSTREAM_WRONGVERSION, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) );
}
+ delete pLibrary;
}
delete pDocStream;
commit bbbba78518a700ed7fc9c25d232543ea49a605ec
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Nov 29 20:39:42 2015 +0000
Resource Leak
CID: 705772
diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx
index 84dfe2d..0d22a2e 100644
--- a/vcl/source/fontsubset/ttcr.cxx
+++ b/vcl/source/fontsubset/ttcr.cxx
@@ -394,9 +394,10 @@ int StreamToFile(TrueTypeCreator *_this, const char* fname)
FILE* fd;
if ((r = StreamToMemory(_this, &ptr, &length)) != SF_OK) return r;
- if (!fname) return SF_BADFILE;
- if ((fd = fopen(fname, "wb")) == NULL) return SF_BADFILE;
-
+ if ((!fname) || (fd = fopen(fname, "wb")) == NULL)) {
+ free(ptr);
+ return SF_BADFILE;
+ }
if (fwrite(ptr, 1, length, fd) != length) {
r = SF_FILEIO;
} else {
commit 5eb9efa7e3aadc229d2ae260601aa05abfed0076
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Nov 29 20:35:06 2015 +0000
Resource Leak
CID: 705767
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx
index fa21743..97cfe1c 100644
--- a/sw/source/ui/utlui/glbltree.cxx
+++ b/sw/source/ui/utlui/glbltree.cxx
@@ -952,6 +952,7 @@ void SwGlobalTree::ExcecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry
pSelEntry = PrevSelected(pSelEntry);
if(pSelEntry)
{
+ delete pTempContents;
pTempContents = new SwGlblDocContents;
pActiveShell->GetGlobalDocContent(*pTempContents);
}
commit 7d9f9181d1b541146c18667826fad40abed5d171
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Nov 29 20:26:37 2015 +0000
Resource Leak
CID: 705766
diff --git a/sw/source/ui/uiview/view0.cxx b/sw/source/ui/uiview/view0.cxx
index 51027cf..4d75e58 100644
--- a/sw/source/ui/uiview/view0.cxx
+++ b/sw/source/ui/uiview/view0.cxx
@@ -567,6 +567,7 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
break;
default:
+ delete pOpt;
ASSERT(sal_False, Falsche Request-Methode);
return;
}
commit 7b5545df3acb137244a5d7aabb44b8edf5f0b7d7
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Nov 29 20:24:38 2015 +0000
Resource Leak
CID: 705762
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index 5ed4c95..7a01f3f 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -185,6 +185,8 @@ SwLabDlg::SwLabDlg(Window* pParent, const SfxItemSet& rSet,
if (!bDouble)
pRecs->C40_INSERT( SwLabRec, pRec, 0 );
+ else
+ delete pRec;
sal_uInt16 nLstGroup = 0;
const UNO_NMSPC::Sequence<rtl::OUString>& rMan = aLabelsCfg.GetManufacturers();
commit 2745e1f81d68f78e531a59c9679b3d974746e45a
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Nov 29 20:20:04 2015 +0000
Resource Leak
CID: 705761
diff --git a/sw/source/ui/docvw/romenu.cxx b/sw/source/ui/docvw/romenu.cxx
index 8b7cbcc..4844363 100644
--- a/sw/source/ui/docvw/romenu.cxx
+++ b/sw/source/ui/docvw/romenu.cxx
@@ -241,6 +241,7 @@ SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) :
{
EnableItem( MN_READONLY_EDITDOC, sal_False );
}
+ delete pState;
if ( !sURL.Len() )
{
commit 615911a2ebab730102a728549d5007b44a0ec209
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Nov 29 20:16:07 2015 +0000
Resource Leak
CID: 705760
diff --git a/sw/source/ui/dochdl/swdtflvr.cxx b/sw/source/ui/dochdl/swdtflvr.cxx
index 20c650a..9447969 100644
--- a/sw/source/ui/dochdl/swdtflvr.cxx
+++ b/sw/source/ui/dochdl/swdtflvr.cxx
@@ -2744,6 +2744,7 @@ int SwTransferable::_PasteDBData( TransferableDataHelper& rData,
delete pCommandItem;
delete pCommandTypeItem;
delete pColumnNameItem;
+ delete pSelectionItem;
delete pCursorItem;
}
else
More information about the Libreoffice-commits
mailing list