Cleanup new darray in array structure

The valsr real array support was switched to a dynamic array vals. This
patch updates teh valgrind cleanup code to use the correct name.
This commit is contained in:
Cary R 2013-01-03 16:16:11 -08:00
parent 10b5a82904
commit c64407f7cf
1 changed files with 4 additions and 4 deletions

View File

@ -76,8 +76,8 @@ vvp_array_t array_find(const char*label)
* an array of vvp_vector4_t vectors. * an array of vvp_vector4_t vectors.
* *
* - Array of real variables * - Array of real variables
* The valsr member points to a vvp_realarray_t objects that has an * The vals member points to a dynamic array objects that has an
* array of double variables. This is very much line the way the * array of double variables. This is very much like the way the
* vector4 array works. * vector4 array works.
*/ */
struct __vpiArray : public __vpiHandle { struct __vpiArray : public __vpiHandle {
@ -1897,10 +1897,10 @@ void memory_delete(vpiHandle item)
// constant_delete(handle)? // constant_delete(handle)?
delete arr->vals4; delete arr->vals4;
// if (arr->valsr) {} // if (arr->vals) {}
// Delete the individual words? // Delete the individual words?
// constant_delete(handle)? // constant_delete(handle)?
delete arr->valsr; delete arr->vals;
if (arr->nets) { if (arr->nets) {
for (unsigned idx = 0; idx < arr->array_count; idx += 1) { for (unsigned idx = 0; idx < arr->array_count; idx += 1) {