# HG changeset patch # User rosfran # Date 1171052916 0 # Node ID 21a15c29957b9f3747d3647bcee0473938320451 # Parent 2dea9369a985e53dbb5a5ccab1b15c3219010a12 [svn r346] Fixes to the socket closing and memory cleanup. diff -r 2dea9369a985 -r 21a15c29957b libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Fri Feb 09 20:28:11 2007 +0000 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Fri Feb 09 20:28:36 2007 +0000 @@ -111,7 +111,7 @@ /* Connect to the backend */ if ( gmyth_uri != NULL && myth_handle->is_livetv == TRUE ) { - if ( NULL == myth_handle->livetv ) + if ( NULL == myth_handle->livetv ) { myth_handle->livetv = gmyth_livetv_new (); @@ -275,7 +275,7 @@ MythtvHandle *myth_handle = (MythtvHandle *) method_handle; - if (myth_handle->file_transfer) { + if (myth_handle->file_transfer != NULL) { //gmyth_file_transfer_close (myth_handle->file_transfer); g_object_unref (myth_handle->file_transfer); myth_handle->file_transfer = NULL;