diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-01-26 01:02:30 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-01-26 03:03:08 +0900 |
commit | bb51e8e72be424f0fd92350006c536a97fd4b210 (patch) | |
tree | 043f66cf4677e8fe69309be76565515e4a68f9a0 /basctl/source/dlged/propbrw.cxx | |
parent | 85d34beec5f8196896487c96028b2dc2ce3cf6c8 (diff) |
Deleting a null pointer is safe
Diffstat (limited to 'basctl/source/dlged/propbrw.cxx')
-rw-r--r-- | basctl/source/dlged/propbrw.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx index 5ee9c2886289..4e1f90f1f1f6 100644 --- a/basctl/source/dlged/propbrw.cxx +++ b/basctl/source/dlged/propbrw.cxx @@ -308,8 +308,7 @@ Sequence< Reference< XInterface > > // next element pCurrent = pGroupIterator && pGroupIterator->IsMore() ? pGroupIterator->Next() : NULL; } - if (pGroupIterator) - delete pGroupIterator; + delete pGroupIterator; } sal_Int32 nCount = aInterfaces.size(); |