[totem-pl-parser] media: Fix warning when opening a directory fails



commit f2d217b74e5818ebc7164bb0a2f29769f396af96
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Nov 15 11:40:09 2010 +0000

    media: Fix warning when opening a directory fails
    
    The enumerator is NULL, so there's nothing to close or unref.

 plparse/totem-pl-parser-media.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/plparse/totem-pl-parser-media.c b/plparse/totem-pl-parser-media.c
index 803ee78..784c661 100644
--- a/plparse/totem-pl-parser-media.c
+++ b/plparse/totem-pl-parser-media.c
@@ -214,8 +214,6 @@ totem_pl_parser_load_directory (GFile *file, GList **list, gboolean *unhandled)
 	if (e == NULL) {
 		if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED) != FALSE)
 			*unhandled = TRUE;
-		g_file_enumerator_close (e, NULL, NULL);
-		g_object_unref (e);
 		g_error_free (err);
 		return FALSE;
 	}



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