diff Framework/Scene2DViewport/MeasureTool.cpp @ 977:262a0244e9b2 toa2019090201

Added missing Unregister for objects that register by the broker + logs + guard in FetchContext
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 02 Sep 2019 17:29:26 +0200
parents 0aff28f15ea2
children ac88989817e3
line wrap: on
line diff
--- a/Framework/Scene2DViewport/MeasureTool.cpp	Sat Aug 31 13:50:11 2019 +0200
+++ b/Framework/Scene2DViewport/MeasureTool.cpp	Mon Sep 02 17:29:26 2019 +0200
@@ -30,7 +30,7 @@
 {
   MeasureTool::~MeasureTool()
   {
-
+    GetController()->Unregister(this);
   }
 
   void MeasureTool::Enable()