teardown abstract method

void teardown()

Called when Digia is shutting down or a new plugin is being registered in place of this one.

Plugin must:

  1. Deregister all CEP callbacks
  2. Clear the delegate reference

Failure to implement teardown correctly causes dangling callbacks that fire into a dead delegate after plugin replacement.

Implementation

void teardown();