aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2014-10-17 08:27:57 -0700
committerRyan Huber <rhuber@gmail.com>2014-10-17 08:27:57 -0700
commit1d0dddffc8b1aa796521755ff82c95195ea00cac (patch)
treec203c65ddbee00c5839f21cac8cafc0d6a817d6f /wee_slack.py
parent7a1c470e0e4a35b2885a8dceae7dcc76bc71c4d4 (diff)
downloadwee-slack-1d0dddffc8b1aa796521755ff82c95195ea00cac.tar.gz
whoopsie! memory leak!
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index b368ceb..145edfc 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -302,7 +302,9 @@ def buffer_typing_update_cb(data, remaining_calls):
def hotlist_cache_update_cb(data, remaining_calls):
#this keeps the hotlist dupe up to date for the buffer switch, but is prob technically a race condition. (meh)
global hotlist
+ prev_hotlist = hotlist
hotlist = w.infolist_get("hotlist", "", "")
+ w.infolist_free(prev_hotlist)
return w.WEECHAT_RC_OK
def buffer_switch_cb(signal, sig_type, data):