Commits

Anonymous committed 23316ed

now releasing exception handler after throwing

Comments (0)

Files changed (1)

src/curlpp/internal/CurlHandle.cpp

 void
 CurlHandle::throwException()
 {
-	if(mException) 
-		mException->throwMe();
+  if(mException) 
+  {
+    std::auto_ptr< cURLpp::CallbackExceptionBase > e(mException);
+    mException = NULL;
+    e->throwMe();
+  }
 }