Remove checks for NULL before g_free().
https://bugzilla.gnome.org/show_bug.cgi?id=733156
static gchar *event_string = NULL;
GString *str;
- if (event_string) {
- g_free(event_string);
- }
+ g_free(event_string);
str = g_string_new ("");
g_string_printf (str, "[%s] [%-20s]", tag, pname);
g_free (ughret);
out:
- if (parser != NULL)
- g_free (parser);
+ g_free (parser);
if (context != NULL)
g_markup_parse_context_free (context);
break;
case PROP_SCHEME:
- if (addr->priv->scheme)
- g_free (addr->priv->scheme);
+ g_free (addr->priv->scheme);
addr->priv->scheme = g_value_dup_string (value);
break;
{
g_return_if_fail (G_IS_NETWORK_SERVICE (srv));
- if (srv->priv->scheme)
- g_free (srv->priv->scheme);
+ g_free (srv->priv->scheme);
srv->priv->scheme = g_strdup (scheme);
g_object_notify (G_OBJECT (srv), "scheme");