forked from AuroraMiddleware/gtk
Don't attempt to dereference icon_theme until after checking it.
This commit is contained in:
parent
6ac81545ef
commit
cf279a14fa
@ -1031,11 +1031,12 @@ void
|
||||
gtk_icon_theme_add_resource_path (GtkIconTheme *icon_theme,
|
||||
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 (path != NULL);
|
||||
|
||||
priv = icon_theme->priv;
|
||||
priv->resource_paths = g_list_append (priv->resource_paths, g_strdup (path));
|
||||
|
||||
do_theme_change (icon_theme);
|
||||
|
Loading…
Reference in New Issue
Block a user