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 876759f commit b5d305fCopy full SHA for b5d305f
inst/include/xml2_types.h
@@ -19,6 +19,7 @@ template <typename T> class XPtr {
19
20
XPtr(T* p) {
21
data_ = R_MakeExternalPtr((void *) p, R_NilValue, R_NilValue);
22
+ R_PreserveObject(data_);
23
}
24
25
operator SEXP() const { return data_; }
0 commit comments