From 9750e49c57e79844c3696f789d4fa6275f8a3a0b Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Fri, 20 Oct 2023 13:43:42 +0200 Subject: Add `NOTIFICATION_PREDELETE_CLEANUP` notification New notification sent after `NOTIFICATION_PREDELETE` to let Objects cleanup at the very end, it should be the last notification sent. --- core/object/object.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core/object/object.cpp') diff --git a/core/object/object.cpp b/core/object/object.cpp index 2e5b897bce..40df13849b 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -198,6 +198,7 @@ bool Object::_predelete() { notification(NOTIFICATION_PREDELETE, true); if (_predelete_ok) { _class_name_ptr = nullptr; // Must restore, so constructors/destructors have proper class name access at each stage. + notification(NOTIFICATION_PREDELETE_CLEANUP, true); } return _predelete_ok; } -- cgit v1.2.3