[librsvg: 13/14] emit_marker_by_name(): Don't copy the incoming string
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 13/14] emit_marker_by_name(): Don't copy the incoming string
- Date: Wed, 24 Jan 2018 19:08:16 +0000 (UTC)
commit d6cff8bdcf41b5f1448582cc1824bbc24fb84db4
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jan 24 12:30:24 2018 -0600
emit_marker_by_name(): Don't copy the incoming string
rust/src/marker.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index 7a1e1b4..908fc14 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -567,7 +567,7 @@ fn emit_marker_by_name (draw_ctx: *const RsvgDrawingCtx,
return;
}
- let name = unsafe { String::from_glib_none (marker_name) };
+ let name = unsafe { utf8_cstr(marker_name) };
let c_node = drawing_ctx::acquire_node_of_type (draw_ctx, &name, NodeType::Marker);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]