From bc9bc3d3597afae8ef5a1d44e682066579cbaae8 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 26 Jan 2009 20:30:37 +0000 Subject: [PATCH] Don't copy the string twice. Bug #569231. * shell/ev-metadata-manager.c: (ev_metadata_manager_set_string): Don't copy the string twice. Bug #569231. svn path=/trunk/; revision=3384 --- ChangeLog | 5 +++++ shell/ev-metadata-manager.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d025a11e..d5ae603d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-26 Christian Persch + + * shell/ev-metadata-manager.c: (ev_metadata_manager_set_string): Don't + copy the string twice. Bug #569231. + 2009-01-26 Christian Persch * libdocument/ev-file-helpers.c: (ev_dir_ensure_exists), diff --git a/shell/ev-metadata-manager.c b/shell/ev-metadata-manager.c index c5235faf..a07d2d66 100644 --- a/shell/ev-metadata-manager.c +++ b/shell/ev-metadata-manager.c @@ -712,7 +712,7 @@ ev_metadata_manager_set_string (const gchar *uri, const gchar *key, const gchar GValue val = { 0, }; g_value_init (&val, G_TYPE_STRING); - g_value_set_string (&val, value); + g_value_set_static_string (&val, value); ev_metadata_manager_set (uri, key, &val); -- 2.43.5