From d055bb3d1abfe2860752a8869cb111d17260f2da Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 14 Jan 2011 17:59:10 +0000 Subject: [PATCH 3/5] update_desktop_file_entry: use _dbus_strdup for something we'll dbus_free --- bus/activation.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bus/activation.c b/bus/activation.c index ee5efa8..0721704 100644 --- a/bus/activation.c +++ b/bus/activation.c @@ -360,7 +360,7 @@ update_desktop_file_entry (BusActivation *activation, entry = _dbus_hash_table_lookup_string (s_dir->entries, _dbus_string_get_const_data (filename)); - exec = strdup (_dbus_replace_install_prefix (exec_tmp)); + exec = _dbus_strdup (_dbus_replace_install_prefix (exec_tmp)); if (entry == NULL) /* New file */ { -- 1.7.2.3