[svn r341] Some fixes. trunk
authorrosfran
Thu Feb 08 21:03:43 2007 +0000 (2007-02-08)
branchtrunk
changeset 3390abdf60d7063
parent 338 6d9f4e8468b3
child 340 84fb21f6941f
[svn r341] Some fixes.
gmyth/src/gmyth_stringlist.c
     1.1 --- a/gmyth/src/gmyth_stringlist.c	Thu Feb 08 20:57:59 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_stringlist.c	Thu Feb 08 21:03:43 2007 +0000
     1.3 @@ -66,8 +66,9 @@
     1.4  
     1.5  	if (gmyth_string_list->glist)
     1.6  		gmyth_string_list_clear_all(gmyth_string_list);
     1.7 -		
     1.8 -	g_list_free( gmyth_string_list->glist );
     1.9 +	
    1.10 +	if ( gmyth_string_list->glist != NULL )
    1.11 +		g_list_free( gmyth_string_list->glist );
    1.12  
    1.13  	G_OBJECT_CLASS (gmyth_string_list_parent_class)->dispose (object);
    1.14  }
    1.15 @@ -387,7 +388,7 @@
    1.16  gint
    1.17  gmyth_string_list_length ( GMythStringList *strlist )
    1.18  {
    1.19 -	if ( strlist != NULL && strlist->glist != NULL )
    1.20 +	if ( !(strlist != NULL && strlist->glist != NULL) )
    1.21  		return 0;
    1.22  
    1.23  	return g_list_length (strlist->glist);