diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-17 08:54:42 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-05-18 06:05:42 +0200 |
commit | c6d929b9802b55d420e4e5b55e6044bd2bf33c47 (patch) | |
tree | 47c927b88a31fd8ddad348a28a7479410484f869 | |
parent | 33980f637bb392b5f7babe9962ecf992787358c9 (diff) |
avoid possible memory leak
-rw-r--r-- | sfx2/source/control/bindings.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 3df8ce240f..049ec70d75 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -1173,6 +1173,8 @@ const SfxPoolItem* SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem* DeleteItemOnIdle( pVoid ); return pVoid; } + else if ( pCache ) // just in case it was created, but GetDispatch() is 0 + DELETEZ( pCache ); // slot is handled internally by SfxDispatcher if ( pImp->bMsgDirty ) |