summaryrefslogtreecommitdiff
path: root/src/nautilus-information-panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-information-panel.c')
-rw-r--r--src/nautilus-information-panel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nautilus-information-panel.c b/src/nautilus-information-panel.c
index 092dbd12d..d1c9609c3 100644
--- a/src/nautilus-information-panel.c
+++ b/src/nautilus-information-panel.c
@@ -743,7 +743,7 @@ nautilus_index_panel_update_buttons (NautilusIndexPanel *index_panel)
{
NautilusFile *file;
GList *command_list;
- const char *mime_type;
+ char *mime_type;
/* dispose any existing buttons */
if (index_panel->details->has_buttons) {
@@ -760,7 +760,9 @@ nautilus_index_panel_update_buttons (NautilusIndexPanel *index_panel)
/* generate a command list from the mime-type */
if (mime_type != NULL) {
- command_list = nautilus_mime_type_get_commands (mime_type);
+ command_list = nautilus_mime_type_get_commands (mime_type);
+ g_free (mime_type);
+
/* install a button for each command in the list */
if (command_list != NULL) {
add_command_buttons (index_panel, command_list);