Skip to content

Commit 6151802

Browse files
Fix snippet of writer loans (#946) (#1049)
* Fix example of writer loans (#946) Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit c440452) # Conflicts: # code/DDSCodeTester.cpp * Fix conflicts Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
1 parent b076306 commit 6151802

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

code/DDSCodeTester.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,10 +2865,6 @@ void dds_dataWriter_examples()
28652865
return;
28662866
}
28672867
}
2868-
2869-
// The data instance can be reused to publish new values,
2870-
// but delete it at the end to avoid leaks
2871-
custom_type_support->deleteData(data);
28722868
//!--
28732869
}
28742870

0 commit comments

Comments
 (0)