From 372ae03535056a1ec106c26f7a924ac89d26c307 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Thu, 18 May 2006 16:21:29 +0000 Subject: [PATCH] There should be one gap between the constructors and the destructors, otherwise the last constructor will be set to NULL overwriting the first destructor. This prevent us from calling the destructors on some classes. This commit was SVN r9969. --- opal/class/opal_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opal/class/opal_object.c b/opal/class/opal_object.c index a0746f512e..9815061f30 100644 --- a/opal/class/opal_object.c +++ b/opal/class/opal_object.c @@ -112,7 +112,7 @@ void opal_class_initialize(opal_class_t *cls) perror("Out of memory"); exit(-1); } - cls->cls_destruct_array = cls->cls_construct_array + cls->cls_depth; + cls->cls_destruct_array = cls->cls_construct_array + cls->cls_depth + 1; cls_construct_array = cls->cls_construct_array; cls_destruct_array = cls->cls_destruct_array;