deleting pointers to incomplete types may cause undefined behavior
[ardour.git] / gtk2_ardour / axis_view.h
index 4ce76c92ce52b74c74135614acd40075879011cb..94f7708d9061e28b6d1c4644e4655ccdb6d1bcc4 100644 (file)
@@ -70,11 +70,18 @@ class AxisView : public virtual Selectable, public PBD::ScopedConnectionList, pu
                property_hashtable.emplace(property_name, s.str());
                gui_object_state().set_property<T> (state_id(), property_name, value);
        }
+    
+       void cleanup_gui_properties () {
+               /* remove related property node from the GUI state */
+               gui_object_state().remove_node (state_id());
+               property_hashtable.clear ();
+       }
 
        bool marked_for_display () const;
        virtual bool set_marked_for_display (bool);
 
        static GUIObjectState& gui_object_state();
+       void clear_property_cache() { property_hashtable.clear(); }
        
   protected: