[svn r347] More fixes on cleaning up variables.
1.1 --- a/gmyth/src/gmyth_recorder.c Fri Feb 09 20:28:36 2007 +0000
1.2 +++ b/gmyth/src/gmyth_recorder.c Fri Feb 09 20:42:11 2007 +0000
1.3 @@ -580,7 +580,7 @@
1.4
1.5 program_info = gmyth_program_info_from_string_list( str_list );
1.6
1.7 - if ( NULL == program_info ) {
1.8 + if ( NULL == program_info || NULL == program_info->pathname || program_info->pathname->len <= 0 ) {
1.9 g_warning ("[%s] GET_PROGRAM_INFO request returned. Error getting program info, it is equals to NULL!!!", __FUNCTION__);
1.10 g_object_unref (program_info);
1.11 return NULL;
2.1 --- a/gmyth/src/gmyth_socket.c Fri Feb 09 20:28:36 2007 +0000
2.2 +++ b/gmyth/src/gmyth_socket.c Fri Feb 09 20:42:11 2007 +0000
2.3 @@ -562,7 +562,7 @@
2.4
2.5 gmyth_socket->sd_io_ch = g_io_channel_unix_new (gmyth_socket->sd);
2.6
2.7 - //g_io_channel_set_close_on_unref (gmyth_socket->sd_io_ch, TRUE);
2.8 + g_io_channel_set_close_on_unref (gmyth_socket->sd_io_ch, TRUE);
2.9 g_io_channel_set_encoding (gmyth_socket->sd_io_ch, NULL, NULL );
2.10
2.11 GIOFlags flags = g_io_channel_get_flags (gmyth_socket->sd_io_ch);