Skip to content

Commit

Permalink
fix the destroy VTABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Oct 29, 2009
1 parent 1b3b5f7 commit 70000f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pmc/nummatrix2d.pmc
Expand Up @@ -61,7 +61,9 @@ pmclass NumMatrix2D dynpmc auto_attrs {
VTABLE void destroy() {
Parrot_NumMatrix2D_attributes * attr =
(Parrot_NumMatrix2D_attributes *) PARROT_NUMMATRIX2D(SELF);
mem_sys_free(attr->storage);
FLOAT * const s = attr->storage;
if (s)
mem_sys_free(s);
}

/*
Expand Down

0 comments on commit 70000f9

Please sign in to comment.