# HG changeset patch # User renatofilho # Date 1193323088 -3600 # Node ID 48cf27f814b799baaa4c3b881a5aea608e4eccad # Parent d6e8c7ec5fd85a04bab8112808d92105fd86d5bf [svn r875] fixed channel icon diff -r d6e8c7ec5fd8 -r 48cf27f814b7 myth-dbus/src/gmyth-dbus-server.c --- a/myth-dbus/src/gmyth-dbus-server.c Thu Oct 25 15:28:35 2007 +0100 +++ b/myth-dbus/src/gmyth-dbus-server.c Thu Oct 25 15:38:08 2007 +0100 @@ -407,6 +407,7 @@ GError **error) { GMythDbusServerPrivate *priv; + g_debug ("%s:%d", __FUNCTION__, __LINE__); priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend, FALSE); @@ -437,7 +438,6 @@ g_return_val_if_fail (priv->myth_backend, FALSE); g_return_val_if_fail (gmyth_dbus_server_connect_epg (GMYTH_DBUS_SERVER (obj)), FALSE); - g_time_val_from_iso8601 (start_time, &start_time_val); g_time_val_from_iso8601 (end_time, &end_time_val); @@ -460,6 +460,9 @@ data = (GMythProgramInfo *) walk->data; + if (!data) + continue; + g_value_init (&program, program_type); g_value_take_boxed (&program, dbus_g_type_specialized_construct (program_type)); @@ -482,7 +485,10 @@ g_free (end_str); } - gmyth_free_program_list (list); + if (list) + gmyth_free_program_list (list); + + g_debug ("%s:%d", __FUNCTION__, __LINE__); return TRUE; } @@ -593,6 +599,7 @@ gmyth_dbus_server_parse_recorded_info (data, &record); g_ptr_array_add (*records, g_value_get_boxed (&record)); + //g_value_unset (&record); } gmyth_recorded_info_list_free (list); @@ -678,8 +685,6 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); - g_debug ("getting icon: %s", uri); - g_return_val_if_fail (priv->myth_backend, FALSE); if (!gmyth_util_file_exists (priv->myth_backend, uri)) @@ -708,6 +713,8 @@ return TRUE; fail: + if (*image) + g_byte_array_free (*image, TRUE); g_object_unref(file_transfer); return FALSE; } @@ -958,6 +965,7 @@ { GMythDbusServerPrivate *priv; + g_debug ("%s:%d", __FUNCTION__, __LINE__); priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend, FALSE);