Browse Source

destroyed, not destructed.

pull/6199/head
Dan Walmsley 5 years ago
parent
commit
bac825c999
  1. 2
      native/Avalonia.Native/inc/comimpl.h

2
native/Avalonia.Native/inc/comimpl.h

@ -11,7 +11,7 @@
/**
START_COM_CALL causes AddRef to be called at the beggining of a function.
When a function is exited, it causes ReleaseRef to be called.
This ensures that the object cannot be destructed whilst the function is running.
This ensures that the object cannot be destroyed whilst the function is running.
For example: Window Show is called, which triggers an event, and user calls Close inside the event
causing the refcount to reach 0, and the object to be destroyed. Function then continues and this pointer
will now be invalid.

Loading…
Cancel
Save