diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-22 20:48:51 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-22 20:48:51 +0200 |
commit | 067f310be66118814b4e8a75cc6e18ae7a4d3da4 (patch) | |
tree | 56343953351c06fa29292c691384262e9fc493a7 /src/plugins/script/script-repo.c | |
parent | 333253e5b9ba3431ee0ea1242d8195ddb1fa5c62 (diff) | |
download | weechat-067f310be66118814b4e8a75cc6e18ae7a4d3da4.zip |
script: fix crash on "/script update" if a script detail is displayed in buffer (closes #177)
Diffstat (limited to 'src/plugins/script/script-repo.c')
-rw-r--r-- | src/plugins/script/script-repo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c index bd6d5105b..b0f9155ef 100644 --- a/src/plugins/script/script-repo.c +++ b/src/plugins/script/script-repo.c @@ -652,6 +652,10 @@ script_repo_remove (struct t_script_repo *script) { struct t_script_repo *new_scripts_repo; + /* unlink script from buffer (if it is used) */ + if (script_buffer_detail_script == script) + script_buffer_detail_script = NULL; + /* remove script from list */ if (last_script_repo == script) last_script_repo = script->prev_script; |