Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Nov 30, 2024
1 parent 30e0796 commit e77b6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rinterface_extra.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ igraph_error_t R_igraph_attribute_init(igraph_t *graph, igraph_vector_ptr_t *att
int px = 0;

result=PROTECT(NEW_LIST(4));
// The "preserve list" Will be cleared with the next invocation of IGRAPH_R_CHECK().
// The "preserve list" Will be cleared with the next invocation of an igraph function.
// Adding to that list ensures that the attributes aren't GC-ed prematurely.
R_igraph_attribute_add_to_preserve_list(result);

Expand Down

0 comments on commit e77b6c4

Please sign in to comment.