Skip to content

Commit

Permalink
Fix broken style handling
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Jul 1, 2015
1 parent dc7da87 commit ff864ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/glw/glw_style.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ glw_style_bindings_sweep(glw_t *w, int all)
glw_root_t *gr = w->glw_root;

for(gsb = LIST_FIRST(&w->glw_style_bindings); gsb != NULL; gsb = next) {
next = LIST_NEXT(gsb, gsb_style_link);
next = LIST_NEXT(gsb, gsb_widget_link);

if(all || gsb->gsb_mark) {

Expand All @@ -1174,6 +1174,7 @@ glw_style_bindings_sweep(glw_t *w, int all)
} while(gs != NULL);

glw_style_release(gsb->gsb_style);
gsb->gsb_style = NULL;
glw_style_binding_destroy(gsb, gr);
}
}
Expand Down

0 comments on commit ff864ef

Please sign in to comment.