Example #1
0
CedarDisplay::~CedarDisplay()
{
    // clean up if release has not been called before
    Display*   pDisplay = reinterpret_cast<Display*>(mNativeContext);
    if (pDisplay != NULL) {
        pDisplay->disconnect();
        // remove context to prevent further Java access
        pDisplay->decStrong(this);
    }
}