rragu / curlpp

Automatically exported from code.google.com/p/curlpp
0 stars 0 forks source link

Cleanup class deprecated & doesn't cleanup but still used in examples #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
curlpp::Cleanup::Cleanup()
{
  curlpp::initialize();
}

curlpp::Cleanup::~Cleanup()
{}

~Cleanup doesn't call terminate, hence leading to memory leaks.

::curlpp::Cleanup is heavily used in examples which come with the library 
making impression it's ok to use it.

Either add terminate to destructor or remove Cleanup from examples.

Version 0.7.3

Original issue reported on code.google.com by fukanchik on 24 Oct 2013 at 10:53