# HG changeset patch # User melunko # Date 1179318084 -3600 # Node ID 9d602fc9a79997a9b060dd38bd86b0f3cbed712d # Parent a4fb2dd520ba31fd38b73d07e566cbde22ba95b2 [svn r668] Fixed but to release hostname string when the local machine does not have hostname set diff -r a4fb2dd520ba -r 9d602fc9a799 gmyth/src/gmyth_livetv.c --- a/gmyth/src/gmyth_livetv.c Wed May 16 00:16:07 2007 +0100 +++ b/gmyth/src/gmyth_livetv.c Wed May 16 13:21:24 2007 +0100 @@ -434,8 +434,11 @@ if (livetv->local_hostname == NULL) { + g_warning ("livetv could not retrieve the local hostname"); res = FALSE; goto error; + } else { + gmyth_debug ("Local hostname: %s", livetv->local_hostname->str); } if (livetv->recorder != NULL) @@ -649,7 +652,8 @@ res = FALSE; - g_string_free (livetv->local_hostname, TRUE); + if (livetv->local_hostname != NULL) + g_string_free (livetv->local_hostname, TRUE); if (livetv->recorder != NULL) {