diff options
author | Ted Gould <ted@gould.cx> | 2012-03-20 22:53:52 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-03-20 22:53:52 -0500 |
commit | 24647064d5447a63987713844d6e59ee7f980be7 (patch) | |
tree | 69dd622967871aa6d9c57dc8bbd4d9f5afbc800b /libdbusmenu-gtk | |
parent | 0386a8f6273e5bca12af38402148ccb45194119d (diff) | |
download | libdbusmenu-24647064d5447a63987713844d6e59ee7f980be7.tar.gz libdbusmenu-24647064d5447a63987713844d6e59ee7f980be7.tar.bz2 libdbusmenu-24647064d5447a63987713844d6e59ee7f980be7.zip |
Fix string leak
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 31b01d5..f507a56 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -738,7 +738,7 @@ process_a11y_desc (DbusmenuMenuitem * mi, GtkMenuItem * gmi, GVariant * variant, if (variant != NULL) { const gchar * setname = NULL; - setname = g_variant_dup_string(variant, NULL); + setname = g_variant_get_string(variant, NULL); atk_object_set_name(aobj, setname); } else { /* The atk docs advise to set the name of the atk object to an empty |