self->priv->rendered_pixbuf = ensure_stated_icon_from_info (self, context, info);
if (info)
- gtk_icon_info_free (info);
+ g_object_unref (info);
}
static void
_gtk_icon_helper_clear (self);
if (icon_name != NULL &&
- g_strcmp0 (icon_name, "") != 0)
+ icon_name[0] != '\0')
{
self->priv->storage_type = GTK_IMAGE_ICON_NAME;
self->priv->icon_name = g_strdup (icon_name);
_gtk_icon_helper_clear (self);
if (stock_id != NULL &&
- g_strcmp0 (stock_id, "") != 0)
+ stock_id[0] != '\0')
{
self->priv->storage_type = GTK_IMAGE_STOCK;
self->priv->stock_id = g_strdup (stock_id);