mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Server referencing in /EVAL really should have checked if the server wasn't
NULL :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2387 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6c291d34a4
commit
82b0c081e2
@ -584,10 +584,11 @@ void eval_special_string(const char *cmd, const char *data,
|
|||||||
g_free(old);
|
g_free(old);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (server != NULL)
|
||||||
server_ref(server);
|
server_ref(server);
|
||||||
signal_emit("send command", 3, ret, server, item);
|
signal_emit("send command", 3, ret, server, item);
|
||||||
|
|
||||||
if (!server_unref(server)) {
|
if (server != NULL && !server_unref(server)) {
|
||||||
/* the server was destroyed */
|
/* the server was destroyed */
|
||||||
server = NULL;
|
server = NULL;
|
||||||
item = NULL;
|
item = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user