# HG changeset patch # User rosfran # Date 1171053731 0 # Node ID 8c26cc7dc51b055d5ed7557d030cc5aed0987b2e # Parent 21a15c29957b9f3747d3647bcee0473938320451 [svn r347] More fixes on cleaning up variables. diff -r 21a15c29957b -r 8c26cc7dc51b gmyth/src/gmyth_recorder.c --- a/gmyth/src/gmyth_recorder.c Fri Feb 09 20:28:36 2007 +0000 +++ b/gmyth/src/gmyth_recorder.c Fri Feb 09 20:42:11 2007 +0000 @@ -580,7 +580,7 @@ program_info = gmyth_program_info_from_string_list( str_list ); - if ( NULL == program_info ) { + if ( NULL == program_info || NULL == program_info->pathname || program_info->pathname->len <= 0 ) { g_warning ("[%s] GET_PROGRAM_INFO request returned. Error getting program info, it is equals to NULL!!!", __FUNCTION__); g_object_unref (program_info); return NULL; diff -r 21a15c29957b -r 8c26cc7dc51b gmyth/src/gmyth_socket.c --- a/gmyth/src/gmyth_socket.c Fri Feb 09 20:28:36 2007 +0000 +++ b/gmyth/src/gmyth_socket.c Fri Feb 09 20:42:11 2007 +0000 @@ -562,7 +562,7 @@ gmyth_socket->sd_io_ch = g_io_channel_unix_new (gmyth_socket->sd); - //g_io_channel_set_close_on_unref (gmyth_socket->sd_io_ch, TRUE); + g_io_channel_set_close_on_unref (gmyth_socket->sd_io_ch, TRUE); g_io_channel_set_encoding (gmyth_socket->sd_io_ch, NULL, NULL ); GIOFlags flags = g_io_channel_get_flags (gmyth_socket->sd_io_ch);