From cc60def49e071ee821f308152e87228aac1cc72c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Sat, 23 May 2009 16:47:01 +0200 Subject: [PATCH] * remove a memory leak in the del_sample method --- src/TangoHKLAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TangoHKLAdapter.cpp b/src/TangoHKLAdapter.cpp index 83861ed..d2b31d2 100644 --- a/src/TangoHKLAdapter.cpp +++ b/src/TangoHKLAdapter.cpp @@ -875,7 +875,7 @@ namespace Diffractometer_ns sample = hkl_sample_new_copy(current); if(sample){ - sample->name = copy_name; + hkl_sample_set_name(sample, copy_name); hkl_sample_list_append(_diffractometer->samples, sample); } } -- 2.11.4.GIT