[nautilus-open-terminal] Fix double-free when opening terminal on desktop



commit 27c00a39202f621342bc51f6fa5bfa1e48475556
Author: Christian Neumair <cnmeumair gnome org>
Date:   Sat May 23 09:44:24 2009 +0200

    Fix double-free when opening terminal on desktop
    
    When opening a terminal on the desktop, the path variable was freed before being used in
    nautilus-open-terminal.c:get_terminal_command_for_file_info().
    Thanks to Arthur Taylor <theycallhimart gmail com> for spotting the issue.
---
 src/nautilus-open-terminal.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/nautilus-open-terminal.c b/src/nautilus-open-terminal.c
index afab511..291a289 100644
--- a/src/nautilus-open-terminal.c
+++ b/src/nautilus-open-terminal.c
@@ -206,7 +206,6 @@ get_terminal_command_for_file_info (NautilusFileInfo *file_info,
 			} else {
 				path = g_strdup (g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP));
 			}
-			g_free (path);
 			break;
 
 		case FILE_INFO_SFTP:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]