1.1 --- a/gmyth/src/gmyth_backendinfo.c Tue Jul 03 21:20:15 2007 +0100
1.2 +++ b/gmyth/src/gmyth_backendinfo.c Tue Jul 03 21:26:55 2007 +0100
1.3 @@ -347,7 +347,7 @@
1.4 GMythSocket*
1.5 gmyth_backend_info_get_connected_socket (GMythBackendInfo *backend_info)
1.6 {
1.7 - if (backend_info->sock != NULL) {
1.8 + if (backend_info->sock == NULL) {
1.9 gboolean res;
1.10 backend_info->sock = gmyth_socket_new ();
1.11 res = gmyth_socket_connect_to_backend (socket,
2.1 --- a/gmyth/src/gmyth_util.c Tue Jul 03 21:20:15 2007 +0100
2.2 +++ b/gmyth/src/gmyth_util.c Tue Jul 03 21:26:55 2007 +0100
2.3 @@ -440,8 +440,8 @@
2.4 socket = gmyth_backend_info_get_connected_socket (backend_info);
2.5 if (socket != NULL) {
2.6 res = gmyth_util_file_exists_from_socket (socket, filename);
2.7 + g_object_unref(socket);
2.8 }
2.9 - g_object_unref(socket);
2.10 return res;
2.11 }
2.12