Skip to content

Commit cde16da

Browse files
committed
test_disconnect: Add comment to explain potential leak.
Because clang-tidy incorrectly (but understandably) complains about this.
1 parent 414d9f4 commit cde16da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_disconnect.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ main(int argc, char* argv[])
165165
util->check_result(result_stream, "sig is empty (size=0): ");
166166

167167
result_stream << "deleting a signal during emission... ";
168-
auto b = new B;
168+
auto b = new B; //This is deleted by B::destroy().
169169
b->emit();
170170
util->check_result(result_stream, "deleting a signal during emission... Good bye world!");
171171

0 commit comments

Comments
 (0)