aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app-indicator.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index cb0086f..3dc5937 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -1619,16 +1619,18 @@ status_icon_changes (AppIndicator * self, gpointer data)
gint n_elements, i;
gboolean found=FALSE;
gtk_icon_theme_get_search_path(icon_theme, &path, &n_elements);
- for (i=0; i< n_elements || path[i] == NULL; i++) {
- if(g_strcmp0(path[i], theme_path) == 0) {
- found=TRUE;
- break;
+ if (path != NULL) {
+ for (i=0; i< n_elements; i++) {
+ if(g_strcmp0(path[i], theme_path) == 0) {
+ found=TRUE;
+ break;
+ }
}
+ g_strfreev (path);
}
if(!found) {
gtk_icon_theme_append_search_path(icon_theme, theme_path);
}
- g_strfreev (path);
}
const gchar * icon_name = NULL;