[librsvg/librsvg-2.54: 1/5] xml2_load.rs: Explicitly drop a Box::from_raw to free it
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.54: 1/5] xml2_load.rs: Explicitly drop a Box::from_raw to free it
- Date: Fri, 26 Aug 2022 19:20:53 +0000 (UTC)
commit f82cdda1570934ec949f39ce21b6ae86673daf7b
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jul 20 09:53:59 2022 -0500
xml2_load.rs: Explicitly drop a Box::from_raw to free it
Did this change in nightly?
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/723>
src/xml/xml2_load.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/xml/xml2_load.rs b/src/xml/xml2_load.rs
index 4318ffbda..25bf8b317 100644
--- a/src/xml/xml2_load.rs
+++ b/src/xml/xml2_load.rs
@@ -368,7 +368,7 @@ unsafe extern "C" fn stream_ctx_close(context: *mut libc::c_void) -> libc::c_int
}
};
- Box::from_raw(ctx);
+ drop(Box::from_raw(ctx));
ret
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]