File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
* DESCRIPTION (Version, Date): Roll minor version
4
4
5
+ * inst/include/Rcpp/Reference.h: Shield Rf_mkstring inside Rf_lang2
5
6
2019-10-31 Romain Francois <
[email protected] >
6
7
7
8
* inst/include/Rcpp/DataFrame.h: Protect temporaries from gc
Original file line number Diff line number Diff line change 2
2
//
3
3
// Reference.h: Rcpp R/C++ interface class library -- Reference class objects
4
4
//
5
- // Copyright (C) 2010 - 2015 Dirk Eddelbuettel and Romain Francois
5
+ // Copyright (C) 2010 - 2019 Dirk Eddelbuettel and Romain Francois
6
6
//
7
7
// This file is part of Rcpp.
8
8
//
@@ -58,7 +58,8 @@ namespace Rcpp{
58
58
*/
59
59
Reference_Impl ( const std::string& klass ) {
60
60
SEXP newSym = Rf_install (" new" );
61
- Shield<SEXP> call ( Rf_lang2 ( newSym, Rf_mkString ( klass.c_str () ) ) );
61
+ Shield<SEXP> str (Rf_mkString (klass.c_str ()));
62
+ Shield<SEXP> call (Rf_lang2 (newSym, str));
62
63
Storage::set__ ( Rcpp_fast_eval ( call , Rcpp::internal::get_Rcpp_namespace ()) );
63
64
}
64
65
You can’t perform that action at this time.
0 commit comments