diff --git a/widgets/netwmicon.c b/widgets/netwmicon.c index 8e823f94..bac0c36d 100644 --- a/widgets/netwmicon.c +++ b/widgets/netwmicon.c @@ -77,6 +77,8 @@ netwmicon_draw(Widget *widget, DrawCtx *ctx, int offset, widget->location, 0, icon->width, icon->height, widget->statusbar->height, icon->image); + + p_delete(&icon->image); p_delete(&icon); return widget->width; diff --git a/widgets/tasklist.c b/widgets/tasklist.c index 0477a891..831b290c 100644 --- a/widgets/tasklist.c +++ b/widgets/tasklist.c @@ -98,6 +98,7 @@ tasklist_draw(Widget *widget, DrawCtx *ctx, int offset, int used) widget->location + box_width * i, 0, icon->width, icon->height, widget->statusbar->height, icon->image); + p_delete(&icon->image); p_delete(&icon); } }