Index: /trunk/FACT++/gui/FactGui.h
===================================================================
--- /trunk/FACT++/gui/FactGui.h	(revision 11241)
+++ /trunk/FACT++/gui/FactGui.h	(revision 11242)
@@ -1084,11 +1084,10 @@
             h->SetMinimum(-1111);
             h->SetMaximum(-1111);
-        }
-
-        if (!fAdcAutoScale->isChecked())
-        {
-            if (h->GetMinimum()==-1111)
+	}
+	else
+	{
+            if (h->GetMinimumStored()==-1111)
                 h->SetMinimum(-1026);
-            if (h->GetMaximum()==-1111)
+            if (h->GetMaximumStored()==-1111)
                 h->SetMaximum(1025);
         }
@@ -2831,5 +2830,6 @@
     ~FactGui()
     {
-        UnsubscribeAllServers();
+	UnsubscribeAllServers();
+        delete fEventData;
     }
 };
