Blob Blame History Raw
From c7dd58f3bc012690bab16763b1d73a4b7106ced9 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Tue, 29 Mar 2022 15:40:35 +0200
Subject: [PATCH] Avoid deleting TFormulas twice

Example failure:

 562/1224 Test  #541: tutorial-gl-gltf3 ...................................................***Failed  Error regular expression found in output. Regex=[Error in <]  1.36 sec
Processing /builddir/build/BUILD/root-6.26.00/tutorials/gl/gltf3.C...
Error in <TList::Delete>: A list is accessing an object (0x7fffd1c959a0) already deleted (list name = Functions)
Error in <TList::Delete>: A list is accessing an object (0x7fffd1c95750) already deleted (list name = Functions)

The commit also changes the filename used in
tutorials/hist/fillrandom.py to be different form the one used in
tutorials/hist/fillrandom.C (and tutorials/pyroot/fillrandom.py)
---
 tutorials/gl/gltf3.C | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tutorials/gl/gltf3.C b/tutorials/gl/gltf3.C
index 3697e69b7a..4089f0d2b7 100644
--- a/tutorials/gl/gltf3.C
+++ b/tutorials/gl/gltf3.C
@@ -27,8 +27,8 @@ void gltf3()
    TPad *tf3Pad  = new TPad("box", "box", 0.04, 0.04, 0.96, 0.8);
    tf3Pad->Draw();
 
-   TFormula f1 = TFormula("f1", "x*x + y*y + z*z + 2*y - 1");
-   TFormula f2 = TFormula("f2", "x*x + y*y + z*z - 2*y - 1");
+   TFormula *f1 = new TFormula("f1", "x*x + y*y + z*z + 2*y - 1");
+   TFormula *f2 = new TFormula("f2", "x*x + y*y + z*z - 2*y - 1");
 
    // Klein bottle with cut top&bottom parts
    // The Klein bottle is a closed non-orientable surface that has no
-- 
2.35.1