Skip to content

Commit

Permalink
Replace deprecated functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
gildor478 committed Mar 28, 2019
1 parent ccab3d3 commit 141d6d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Archive_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void caml_archive_finalize (value vread)
ptr_archive *ptr = Archive_val(vread);
if (*ptr != NULL)
{
archive_read_finish(*ptr);
archive_read_free(*ptr);
*ptr = NULL;
};
};
Expand Down Expand Up @@ -209,7 +209,7 @@ CAMLprim value caml_archive_read_support_filter_all (value vread)
CAMLparam1(vread);
ptr = Archive_val(vread);
caml_archive_check_error(
archive_read_support_compression_all(*ptr),
archive_read_support_filter_all(*ptr),
*ptr);
CAMLreturn(Val_unit);
};
Expand Down

0 comments on commit 141d6d3

Please sign in to comment.