| 103 // it is possible to have 0 references, in case |
103 // it is possible to have 0 references, in case |
| 104 // a window was created but ui_show was never called |
104 // a window was created but ui_show was never called |
| 105 if(obj->ref == 0 || --obj->ref == 0) { |
105 if(obj->ref == 0 || --obj->ref == 0) { |
| 106 if(obj->destroy) { |
106 if(obj->destroy) { |
| 107 obj->destroy(obj); |
107 obj->destroy(obj); |
| |
108 } else { |
| |
109 uic_object_destroy(obj); |
| 108 } |
110 } |
| 109 uic_object_destroy(obj); |
|
| 110 return 0; |
111 return 0; |
| 111 } |
112 } |
| 112 return 1; |
113 return 1; |
| 113 } |
114 } |
| 114 |
115 |