From: Christian Persch Date: Mon, 26 Jan 2009 20:30:37 +0000 (+0000) Subject: Don't copy the string twice. Bug #569231. X-Git-Tag: EVINCE_2_25_90~23 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=bc9bc3d3597afae8ef5a1d44e682066579cbaae8;p=evince.git 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 --- 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);