Clean up memory in examples.

This commit is contained in:
David Baird
2013-09-27 14:14:43 -06:00
parent e92a98cae2
commit d82fb91436
3 changed files with 9 additions and 3 deletions
+2
View File
@@ -76,6 +76,8 @@ main()
// ...do more stuff...
}
...
delete ws; // alternatively, use unique_ptr<> if you have C++11
return 0;
}
```