From 4edc315841e0f5cafcac776b1e642bf99afe52b4 Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Fri, 14 Apr 2017 10:02:54 -0400 Subject: Possible fix for memory leak issue #11 --- volume-widget/volume.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'volume-widget') diff --git a/volume-widget/volume.lua b/volume-widget/volume.lua index dfcd80d..efb9d20 100644 --- a/volume-widget/volume.lua +++ b/volume-widget/volume.lua @@ -44,6 +44,7 @@ watch( elseif (volume >= 50 and volume < 75) then volume_icon_name="audio-volume-medium-symbolic" elseif (volume >= 75 and volume <= 100) then volume_icon_name="audio-volume-high-symbolic" end - volume_widget.image = path_to_icons .. volume_icon_name .. ".svg" - end + widget.image = path_to_icons .. volume_icon_name .. ".svg" + end, + volume_widget ) -- cgit v1.2.3