Don't attempt to dereference icon_theme until after checking it.
This commit is contained in:
@ -1031,11 +1031,12 @@ void
|
|||||||
gtk_icon_theme_add_resource_path (GtkIconTheme *icon_theme,
|
gtk_icon_theme_add_resource_path (GtkIconTheme *icon_theme,
|
||||||
const gchar *path)
|
const gchar *path)
|
||||||
{
|
{
|
||||||
GtkIconThemePrivate *priv = icon_theme->priv;
|
GtkIconThemePrivate *priv = NULL;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_ICON_THEME (icon_theme));
|
g_return_if_fail (GTK_IS_ICON_THEME (icon_theme));
|
||||||
g_return_if_fail (path != NULL);
|
g_return_if_fail (path != NULL);
|
||||||
|
|
||||||
|
priv = icon_theme->priv;
|
||||||
priv->resource_paths = g_list_append (priv->resource_paths, g_strdup (path));
|
priv->resource_paths = g_list_append (priv->resource_paths, g_strdup (path));
|
||||||
|
|
||||||
do_theme_change (icon_theme);
|
do_theme_change (icon_theme);
|
||||||
|
|||||||
Reference in New Issue
Block a user