[arrayfire] 11/75: Fixing memory leak in plot3
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:01:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.
commit 2325ca2134563896221656c25273026e9486b245
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Tue Feb 9 16:05:48 2016 -0500
Fixing memory leak in plot3
---
src/api/c/plot3.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/api/c/plot3.cpp b/src/api/c/plot3.cpp
index 4e87424..63920bb 100644
--- a/src/api/c/plot3.cpp
+++ b/src/api/c/plot3.cpp
@@ -48,13 +48,13 @@ fg::Plot3* setup_plot3(const af_array P, fg::PlotType ptype, fg::MarkerType mtyp
T max[3], min[3];
if(P_dims[0] == 3) {
- af_get_data_ptr(max, getHandle(reduce<af_max_t, T, T>(pIn, 1)));
- af_get_data_ptr(min, getHandle(reduce<af_min_t, T, T>(pIn, 1)));
+ copyData(max, reduce<af_max_t, T, T>(pIn, 1));
+ copyData(min, reduce<af_min_t, T, T>(pIn, 1));
}
if(P_dims[1] == 3) {
- af_get_data_ptr(max, getHandle(reduce<af_max_t, T, T>(pIn, 0)));
- af_get_data_ptr(min, getHandle(reduce<af_min_t, T, T>(pIn, 0)));
+ copyData(max, reduce<af_max_t, T, T>(pIn, 0));
+ copyData(min, reduce<af_min_t, T, T>(pIn, 0));
}
ForgeManager& fgMngr = ForgeManager::getInstance();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list