3 ms·
It depends. Copying my response from farther down in the thread: >In C, you're supposed to listen for a "destroy" event on the output and then in the handler y
by cycloptic 6y ago
It depends. Copying my response from farther down in the thread:
>In C, you're supposed to listen for a "destroy" event on the output and then in the handler you would delete all your references to the object.
If this wasn't satisfactory for whatever reason, then you could implement it as a weak pointer and check for null every time, but you wouldn't have to.