nautilus r14695 - in trunk: . libnautilus-private



Author: matthiasc
Date: Mon Oct  6 17:01:41 2008
New Revision: 14695
URL: http://svn.gnome.org/viewvc/nautilus?rev=14695&view=rev

Log:
2008-10-06  Matthias Clasen  <mclasen redhat com>

        Bug 553084 â leaks content type description

        * libnautilus-private/nautilus-open-with-dialog.c (set_uri_and_type):
        Don't leak the content type description.



Modified:
   trunk/ChangeLog
   trunk/libnautilus-private/nautilus-open-with-dialog.c

Modified: trunk/libnautilus-private/nautilus-open-with-dialog.c
==============================================================================
--- trunk/libnautilus-private/nautilus-open-with-dialog.c	(original)
+++ trunk/libnautilus-private/nautilus-open-with-dialog.c	Mon Oct  6 17:01:41 2008
@@ -907,10 +907,10 @@
 		description = g_content_type_get_description (mime_type);
 
 		if (description == NULL) {
-			description = _("Unknown");
+			description = g_strdup (_("Unknown"));
 		}
 
-		dialog->details->type_description = g_strdup (description);
+		dialog->details->type_description = description;
 	}
 	g_free (extension);
 



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