]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JORTESubscriptionDestroy.c
Merge branch 'master' of https://github.com/Vajnar/orte
[orte.git] / orte / libjorte / JORTESubscriptionDestroy.c
index 833070c739418c702bb7119a4893090a30e5e1d6..f3ce893e2371e5fb04365ac28cb80965ca295aae 100644 (file)
@@ -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);
     }