Fix obvious memory leaks in the std_vector example
Delete the class when we're done with it.
This commit is contained in:
parent
4a0ed9cb42
commit
4ba57e577a
1 changed files with 2 additions and 0 deletions
|
|
@ -35,5 +35,7 @@ int main() {
|
|||
printf("%s %d\n", A_name_get(a), A_value_get(a));
|
||||
}
|
||||
|
||||
delete_Klass(klass);
|
||||
|
||||
SWIG_exit(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue