summaryrefslogtreecommitdiff
path: root/volume-widget
diff options
context:
space:
mode:
authorPavel Makhov <pavel.makhov@savoirfairelinux.com>2017-04-14 10:02:54 -0400
committerPavel Makhov <pavel.makhov@savoirfairelinux.com>2017-04-14 10:02:54 -0400
commit4edc315841e0f5cafcac776b1e642bf99afe52b4 (patch)
treefb6fd08bfc1751f553e9c7a5671ce98891db31fe /volume-widget
parentfc438f8419373209333ee9bdf86470c54d704dd2 (diff)
Possible fix for memory leak issue #11
Diffstat (limited to 'volume-widget')
-rw-r--r--volume-widget/volume.lua5
1 files changed, 3 insertions, 2 deletions
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
)