From 9ae790e80bd00b4a0cbe1675ee4e2271494c57ee Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 15 Aug 2020 12:56:27 +0200 Subject: [PATCH] fixed memory leak due to QPainter::save() called twice but restore() called only once --- .../src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp index cc60e003b..2a44ba985 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp @@ -102,7 +102,6 @@ void ChannelPostDelegate::paint(QPainter * painter, const QStyleOptionViewItem & RsGxsChannelPost post = index.data(Qt::UserRole).value() ; - painter->save(); painter->fillRect( option.rect, option.backgroundBrush); painter->restore();