# HG changeset patch # User rosfran # Date 1170968623 0 # Node ID 0abdf60d7063469e116469f131671f412839e1f1 # Parent 6d9f4e8468b3bfe373ab63a5fbe08fe2d4656e3e [svn r341] Some fixes. diff -r 6d9f4e8468b3 -r 0abdf60d7063 gmyth/src/gmyth_stringlist.c --- a/gmyth/src/gmyth_stringlist.c Thu Feb 08 20:57:59 2007 +0000 +++ b/gmyth/src/gmyth_stringlist.c Thu Feb 08 21:03:43 2007 +0000 @@ -66,8 +66,9 @@ if (gmyth_string_list->glist) gmyth_string_list_clear_all(gmyth_string_list); - - g_list_free( gmyth_string_list->glist ); + + if ( gmyth_string_list->glist != NULL ) + g_list_free( gmyth_string_list->glist ); G_OBJECT_CLASS (gmyth_string_list_parent_class)->dispose (object); } @@ -387,7 +388,7 @@ gint gmyth_string_list_length ( GMythStringList *strlist ) { - if ( strlist != NULL && strlist->glist != NULL ) + if ( !(strlist != NULL && strlist->glist != NULL) ) return 0; return g_list_length (strlist->glist);