1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fixed freeing recipient after /tiny

This commit is contained in:
James Booth 2013-08-27 20:48:15 +01:00
parent 133614d749
commit d9fb9ad4a7

View File

@ -3001,16 +3001,13 @@ _cmd_tiny(gchar **args, struct cmd_help_t help)
} }
ui_outgoing_msg("me", recipient, tiny); ui_outgoing_msg("me", recipient, tiny);
free(recipient);
} else if (win_type == WIN_PRIVATE) { } else if (win_type == WIN_PRIVATE) {
char *recipient = ui_current_recipient(); char *recipient = ui_current_recipient();
message_send(tiny, recipient); message_send(tiny, recipient);
ui_outgoing_msg("me", recipient, tiny); ui_outgoing_msg("me", recipient, tiny);
free(recipient);
} else { // groupchat } else { // groupchat
char *recipient = ui_current_recipient(); char *recipient = ui_current_recipient();
message_send_groupchat(tiny, recipient); message_send_groupchat(tiny, recipient);
free(recipient);
} }
free(tiny); free(tiny);
} else { } else {