ui/common/object.c

changeset 1128
0a150985d6b6
parent 1127
d3a8c29ebdaa
child 1129
a4affe75198c
--- a/ui/common/object.c	Sun May 17 10:46:35 2026 +0200
+++ b/ui/common/object.c	Mon May 18 21:29:56 2026 +0200
@@ -105,8 +105,9 @@
     if(obj->ref == 0 || --obj->ref == 0) {
         if(obj->destroy) {
             obj->destroy(obj);
+        } else {
+            uic_object_destroy(obj);
         }
-        uic_object_destroy(obj);
         return 0;
     }
     return 1;

mercurial