Changeset 664bac3


Ignore:
Timestamp:
2015-01-16T19:50:25Z (6 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
eb4ad8d
Parents:
ecbd22a
git-author:
jgeboski <jgeboski@…> (16-01-15 19:50:25)
git-committer:
dequis <dx@…> (16-01-15 19:50:25)
Message:

irc-im: fixed invalid memory reading on chat leave

When a chat is left, prpl->chat_leave() is invoked, which is suppose
to free the groupchat. Since the data is now freed, or suppose to have
been freed, attempting to modify the data will result in bad things.
This simply removes an assignment operation, which was unneeded due to
the memory already being freed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    recbd22a r664bac3  
    911911                c->ic->acc->prpl->chat_leave( c );
    912912       
    913         /* Remove references in both directions now. We don't need each other anymore. */
     913        /* Remove the reference. We don't need it anymore. */
    914914        ic->data = NULL;
    915         if( c )
    916                 c->ui_data = NULL;
    917915       
    918916        return TRUE;
Note: See TracChangeset for help on using the changeset viewer.