Skip to content

Commit

Permalink
compile fix - remove free_{vector,matrix} from csharp/r modular
Browse files Browse the repository at this point in the history
interfaces
  • Loading branch information
Soeren Sonnenburg committed May 12, 2012
1 parent fd287f0 commit 81696d6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/interfaces/csharp_modular/swig_typemaps.i
Expand Up @@ -52,8 +52,6 @@
dst[i ] = (CTYPE) $1.vector[i];
}

$1.free_vector();

$result = (CTYPE *)res;
}

Expand Down Expand Up @@ -180,8 +178,6 @@ TYPEMAP_SGVECTOR_REF(float64_t, double, double)
dst[i] = (CTYPE) $1.matrix[i];
}

$1.free_matrix();

$result = (CTYPE *)res;
}

Expand Down
4 changes: 0 additions & 4 deletions src/interfaces/r_modular/swig_typemaps.i
Expand Up @@ -72,8 +72,6 @@ TYPEMAP_IN_SGVECTOR(REALSXP, REAL, float64_t, "Double Precision")
for (int32_t i=0; i<len; i++)
r_cast($result)[i]=(if_type) vec[i];

$1.free_vector();

Rf_unprotect(1);
}
%enddef
Expand Down Expand Up @@ -158,8 +156,6 @@ TYPEMAP_IN_SGMATRIX(REALSXP, REAL, float64_t, "Double Precision")
r_cast($result)[i*num_feat+j]=(if_type) matrix[i*num_feat+j];
}

$1.free_matrix();

Rf_unprotect(1);
}
%enddef
Expand Down

0 comments on commit 81696d6

Please sign in to comment.