Fix some broken stuff with badges in demo and ircv3

Review Request #3767 — Created Jan. 17, 2025 and submitted

Information

pidgin/pidgin
default

Reviewers

I'm not sure if this is the cause of my crash but this code is clearly wrong
as Purple.BadgeManager.find has a transfer of none.
Tried to reproduce but I don't know how many items a GtkListView uses before reusing widgets so I have gave somewhere between 50 and 100 I think.
Summary ID
Fix some broken stuff with badges in demo and ircv3
I'm not sure if this is the cause of my crash but this code is clearly wrong as Purple.BadgeManager.find has a transfer of none.
6e7306a6490619e26e94977f9dc2f7f7d1ca3074
Description From Last Updated

I'm not sure how this helps; doesn't PidginBadges already handle NULL? I can't see how it doesn't. And recycling occurs …

QuLogicQuLogic
QuLogic
  1. 
      
  2. Show all issues

    I'm not sure how this helps; doesn't PidginBadges already handle NULL? I can't see how it doesn't.

    And recycling occurs at 200, I believe.

    1. well the crashes don't appear to be null, it's a PURPLE_IS_BADGE(badge) that's crashing.

    2. Actually What i think is happening here is that author gets nulled out, but then badges can't get resolved so it's still pointing to invalid memory.

  3. 
      
grim
QuLogic
  1. Ship It!
  2. 
      
grim
Review request changed
Status:
Completed