aboutsummaryrefslogtreecommitdiffstats
path: root/examples/example7.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-07-12 22:28:02 +0000
committerVincent Richard <[email protected]>2005-07-12 22:28:02 +0000
commit681297e10b666e13cc463f6fbb16236f36c3266c (patch)
tree5d2392e2283232ed3475cd9c69e22897b03e8a97 /examples/example7.cpp
parentAdded contentHandler::extractRaw(). (diff)
downloadvmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz
vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip
Reference counting and smart pointers.
Diffstat (limited to 'examples/example7.cpp')
-rw-r--r--examples/example7.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/example7.cpp b/examples/example7.cpp
index 16492bb4..7161f4e6 100644
--- a/examples/example7.cpp
+++ b/examples/example7.cpp
@@ -49,14 +49,12 @@ int main()
std::cout << " * " << enc.getName() << std::endl;
- vmime::encoder* e = enc.create();
+ vmime::ref <vmime::encoder> e = enc.create();
std::vector <vmime::string> props = e->getAvailableProperties();
for (std::vector <vmime::string>::const_iterator it = props.begin() ; it != props.end() ; ++it)
std::cout << " - " << *it << std::endl;
-
- delete (e);
}
std::cout << std::endl;