]> www.fi.muni.cz Git - evince.git/commitdiff
Don't copy the string twice. Bug #569231.
authorChristian Persch <chpe@src.gnome.org>
Mon, 26 Jan 2009 20:30:37 +0000 (20:30 +0000)
committerChristian Persch <chpe@src.gnome.org>
Mon, 26 Jan 2009 20:30:37 +0000 (20:30 +0000)
* shell/ev-metadata-manager.c: (ev_metadata_manager_set_string): Don't
copy the string twice. Bug #569231.

svn path=/trunk/; revision=3384

ChangeLog
shell/ev-metadata-manager.c

index d025a11e5f43c7446697601845bdaaafa78a5838..d5ae603df372e626d6531c939a1fa0a6af82afe5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-26  Christian Persch  <chpe@gnome.org>
+
+       * shell/ev-metadata-manager.c: (ev_metadata_manager_set_string): Don't
+       copy the string twice. Bug #569231.
+
 2009-01-26  Christian Persch  <chpe@gnome.org>
 
        * libdocument/ev-file-helpers.c: (ev_dir_ensure_exists),
index c5235fafd2a5829781db95a450e3ed27a4b23215..a07d2d66d74cd2579f0a89e9c47d2da36665f9c1 100644 (file)
@@ -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);