Kyle Robbertze pushed to branch upstream at Debian OCaml Maintainers / ocaml-ogg


Commits:
2487ec91 by Kyle Robbertze at 2022-07-12T20:13:21+02:00
New upstream version 0.7.2
- - - - -


4 changed files:

- CHANGES
- dune-project
- ogg.opam
- src/ogg_stubs.c


Changes:

=====================================
CHANGES
=====================================
@@ -1,3 +1,7 @@
+0.7.2 (28-06-2022)
+=====
+* Use `caml_alloc_custom_mem` for packet allocations (#2348)
+
 0.7.1 (07-03-2022)
 =====
 * Added decoder API for audio big array.


=====================================
dune-project
=====================================
@@ -1,5 +1,5 @@
 (lang dune 2.8)
-(version 0.7.1)
+(version 0.7.2)
 (name ogg)
 (source (github savonet/ocaml-ogg))
 (license GPL-2.0)


=====================================
ogg.opam
=====================================
@@ -1,6 +1,6 @@
 # This file is generated by dune, edit dune-project instead
 opam-version: "2.0"
-version: "0.7.1"
+version: "0.7.2"
 synopsis: "Bindings to libogg"
 maintainer: ["The Savonet Team <[email protected]>"]
 authors: ["The Savonet Team <[email protected]>"]


=====================================
src/ogg_stubs.c
=====================================
@@ -258,7 +258,7 @@ static struct custom_operations packet_ops = {
 value value_of_packet(ogg_packet *op) {
   CAMLparam0();
   CAMLlocal1(packet);
-  packet = caml_alloc_custom(&packet_ops, sizeof(ogg_packet *), 1, 0);
+  packet = caml_alloc_custom_mem(&packet_ops, sizeof(ogg_packet *), op->bytes);
   Packet_val(packet) = copy_packet(op);
   CAMLreturn(packet);
 }



View it on GitLab: 
https://salsa.debian.org/ocaml-team/ocaml-ogg/-/commit/2487ec91a12b33bcf1f1c3d196f05446d401fa81

-- 
View it on GitLab: 
https://salsa.debian.org/ocaml-team/ocaml-ogg/-/commit/2487ec91a12b33bcf1f1c3d196f05446d401fa81
You're receiving this email because of your account on salsa.debian.org.


Reply via email to