X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/blobdiff_plain/4d5ff5f99c785686d214d4a4b1a80a654dbfdc1d..123c8c321489e0d0528603d397ca552641dec89b:/orte/libjorte/JORTESubscriptionDestroy.c diff --git a/orte/libjorte/JORTESubscriptionDestroy.c b/orte/libjorte/JORTESubscriptionDestroy.c index 833070c..f3ce893 100644 --- a/orte/libjorte/JORTESubscriptionDestroy.c +++ b/orte/libjorte/JORTESubscriptionDestroy.c @@ -88,8 +88,12 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionDestroy if (h) { //JavaVM *jvm; //jint ret; + + /* HACK */ JORTECallbackContext_t *ctx = *((JORTECallbackContext_t **)h); *((JORTECallbackContext_t **)h) = 0; + /**/ + if (ctx->obj) { #ifdef TEST_STAGE printf(":c: deleting ctx->obj \n"); @@ -114,6 +118,18 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionDestroy #endif (*env)->DeleteGlobalRef(env, ctx->obj_buf); } + if (ctx->obj_BO_BE) { + #ifdef TEST_STAGE + printf(":c: deleting ctx->obj_BO_BE\n"); + #endif + (*env)->DeleteGlobalRef(env, ctx->obj_BO_BE); + } + if (ctx->obj_BO_LE) { + #ifdef TEST_STAGE + printf(":c: deleting ctx->obj_BO_LE\n"); + #endif + (*env)->DeleteGlobalRef(env, ctx->obj_BO_LE); + } // free(ctx); }