We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee5de74 commit 686d58eCopy full SHA for 686d58e
src/httpserver/details/http_response_ptr.hpp
@@ -79,10 +79,10 @@ struct http_response_ptr
79
80
~http_response_ptr()
81
{
82
- if (atomic_decrement(num_references) != 0 || res == 0x0) return;
+ if (atomic_decrement(num_references) != 0) return;
83
84
- delete res;
85
- delete num_references;
+ if (res != 0x0) delete res;
+ if (num_references != 0x0) delete num_references;
86
87
res = 0x0;
88
num_references = 0x0;
0 commit comments