totem-pl-parser r231 - in branches/gnome-2-24: . plparse



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

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

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



Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/plparse/totem-pl-parser.c

Modified: branches/gnome-2-24/plparse/totem-pl-parser.c
==============================================================================
--- branches/gnome-2-24/plparse/totem-pl-parser.c	(original)
+++ branches/gnome-2-24/plparse/totem-pl-parser.c	Sat Sep 27 03:31:27 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]