Skip to content

Commit cef40fb

Browse files
Fix snippet of writer loans (backport #946) (#1050)
* 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 cf7f9ef commit cef40fb

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

code/DDSCodeTester.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,10 +2849,6 @@ void dds_dataWriter_examples()
28492849
return;
28502850
}
28512851
}
2852-
2853-
// The data instance can be reused to publish new values,
2854-
// but delete it at the end to avoid leaks
2855-
custom_type_support->deleteData(data);
28562852
//!--
28572853
}
28582854

0 commit comments

Comments
 (0)