Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10095

Teardown issue: TCanvas deletes TSlider

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.17/01
    • None
    • Graphics, PyROOT
    • None
    • Centos7, Python2

    Description

      The following code segfaults:

      TCanvas *c1 = new TCanvas("c1", "The HSUM example", 200, 10, 600, 400);
      TSlider *slider = new TSlider("slider", "test", 4.2, 0, 4.6, 1, 38);
      delete c1;
      delete slider;
      

      Looks like the TCanvas deletes the TSlider in its destructor, which makes the delete of the TSlider fail.

      This issue is similar to what was reported here for a TCanvas and a TPad:
      https://sft.its.cern.ch/jira/browse/ROOT-10060

      Attachments

        Activity

          People

            etejedor Enric Tejedor Saavedra
            etejedor Enric Tejedor Saavedra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: