Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't call destroy_matrix() - SGMatrix cleans up itself
  • Loading branch information
Soeren Sonnenburg committed May 8, 2012
1 parent cf5e351 commit 7bb62a6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion examples/undocumented/libshogun/clustering_kmeans.cpp
Expand Up @@ -104,7 +104,6 @@ int main(int argc, char **argv)
SG_UNREF(clustering);
SG_UNREF(labels);
SG_UNREF(features);
cluster_centers.destroy_matrix();

exit_shogun();

Expand Down
Expand Up @@ -145,7 +145,6 @@ int main(int argc, char **argv)
}

SG_UNREF(features);
data.destroy_matrix();
exit_shogun();
return 0;
}
Expand Down
Expand Up @@ -66,9 +66,7 @@ int main(int argc, char** argv)
SG_UNREF(features);
SG_UNREF(labels);
SG_UNREF(kernel);
cov.destroy_matrix();

#endif
#endif

exit_shogun();
return 0;
Expand Down

0 comments on commit 7bb62a6

Please sign in to comment.