testing working, and fixed memory leak in replace with substring function
This commit is contained in:
parent
4c0c5d377d
commit
5de968688c
7 changed files with 131 additions and 75 deletions
|
|
@ -13,8 +13,8 @@ struct ARC_Handler {
|
|||
|
||||
void ARC_Handler_Create(ARC_Handler **handler, ARC_Handler_CompareDataFn *compareFn, ARC_Handler_CleanDataFn cleanfn){
|
||||
*handler = (ARC_Handler *) malloc(sizeof(ARC_Handler));
|
||||
ARC_Vector_Create(&((*handler)->data), NULL);
|
||||
ARC_Vector_Create(&((*handler)->trash), compareFn);
|
||||
ARC_Vector_Create(&((*handler)->data), NULL, NULL);
|
||||
ARC_Vector_Create(&((*handler)->trash), compareFn, NULL);
|
||||
(*handler)->cleanfn = cleanfn;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue