Ignore:
Timestamp:
Jul 3, 2013, 8:39:28 AM (11 years ago)
Author:
gah
Message:

bandaid R bindings for R 3.0.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3/lang/R/Rappture/src/RpLibraryRInterface.cc

    r3177 r3739  
    2424rp_lib_finalizer(SEXP ptr)
    2525{
    26     RpLibrary* lib = NULL;
    2726    if (!R_ExternalPtrAddr(ptr)) {
    2827        return;
    2928    }
    30     lib = (RpLibrary *) R_ExternalPtrAddr(ptr);
     29#ifdef notdef
     30    /* Until we figure this out, don't delete the library object.  R is
     31     * calling the finalizer on every method of the library object.  This is a
     32     * problem only if someone explicitly deletes the library object from
     33     * R. */
     34    RpLibrary* lib;
     35    lib = (RpLibrary *)R_ExternalPtrAddr(ptr);
    3136    if (lib != NULL) {
    3237        delete lib;
    33         lib = NULL;
    34     }
     38    }
     39#endif
    3540    R_ClearExternalPtr(ptr);
    36 
    3741}
    3842
     
    9296    SEXP path)              // null terminated path
    9397{
    94     RpLibrary* lib = NULL;
     98    RpLibrary* lib;
    9599    SEXP ans;
    96100    int handleVal = -1;
     
    123127
    124128    lib = (RpLibrary*) getObject_Void(handleVal);
    125 
    126129    if (lib == NULL) {
    127130        error("invalid Rappture Library Object");
Note: See TracChangeset for help on using the changeset viewer.