totem-pl-parser r232 - in trunk: . plparse



Author: hadess
Date: Sat Sep 27 03:32:10 2008
New Revision: 232
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=232&view=rev

Log:
2008-09-27  Bastien Nocera  <hadess hadess net>

	* plparse/totem-pl-parser.c (totem_pl_parser_parse_internal):
	Fix possible warning



Modified:
   trunk/ChangeLog
   trunk/plparse/totem-pl-parser.c

Modified: trunk/plparse/totem-pl-parser.c
==============================================================================
--- trunk/plparse/totem-pl-parser.c	(original)
+++ trunk/plparse/totem-pl-parser.c	Sat Sep 27 03:32:10 2008
@@ -1521,7 +1521,8 @@
 				DEBUG (file, g_print ("Using %s function for '%s'\n", special_types[i].mimetype, uri));
 				ret = (* special_types[i].func) (parser, file, base_file, data);
 
-				g_object_unref (base_file);
+				if (base_file != NULL)
+					g_object_unref (base_file);
 
 				found = TRUE;
 				break;
@@ -1548,7 +1549,8 @@
 
 				ret = (* dual_types[i].func) (parser, file, base_file ? base_file : file, data);
 
-				g_object_unref (base_file);
+				if (base_file != NULL)
+					g_object_unref (base_file);
 
 				found = TRUE;
 				break;



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