diff options
author | David Tardon <dtardon@redhat.com> | 2015-07-21 21:59:53 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-07-21 22:00:39 +0200 |
commit | 379749ebfba4dfee2b73696a62d1c87121fbfc3b (patch) | |
tree | ba54f7e1050efa041cd359ed3eb1d5b25a931714 | |
parent | 889311ab33a0c57d5f1801044f8cd8de7d93af53 (diff) |
use shared_ptr here too
Change-Id: I82dbb50a4e75326720f30a2dab8f732e8802b7e4
-rw-r--r-- | src/lib/VSDParser.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/VSDParser.cpp b/src/lib/VSDParser.cpp index 9a9db15..827ed48 100644 --- a/src/lib/VSDParser.cpp +++ b/src/lib/VSDParser.cpp @@ -156,12 +156,9 @@ void libvisio::VSDParser::parseMetaData() try return; VSDMetaData metaData; - librevenge::RVNGInputStream *sumaryInfo = m_container->getSubStreamByName("\x05SummaryInformation"); - if (sumaryInfo) - { - metaData.parse(sumaryInfo); - delete sumaryInfo; - } + const RVNGInputStreamPtr_t sumaryInfo(m_container->getSubStreamByName("\x05SummaryInformation")); + if (bool(sumaryInfo)) + metaData.parse(sumaryInfo.get()); const RVNGInputStreamPtr_t docSumaryInfo(m_container->getSubStreamByName("\005DocumentSummaryInformation")); if (bool(docSumaryInfo)) |