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.
Этот коммит содержится в:
родитель
7000cecf78
Коммит
372ae03535
@ -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;
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user