Changeset b3285d3 in Renga


Ignore:
Timestamp:
Nov 19, 2023, 10:41:05 AM (7 months ago)
Author:
PulkoMandy <pulkomandy@…>
Branches:
main
Children:
fc6fa74
Parents:
79488d0
Message:

Fix debugger() call on application exit

Incorrect reference counting of TextDocument led to it not being
destroyed, and a static BulletData being destroyed while there still
were references to it.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • jabber/BlabberApp.cpp

    r79488d0 rb3285d3  
    3232}
    3333
    34 BlabberApp::~BlabberApp() {
     34BlabberApp::~BlabberApp()
     35{
    3536        // take down the message repeater
    3637        MessageRepeater::Instance()->Lock();
  • support/main.cpp

    r79488d0 rb3285d3  
    77#include "jabber/BlabberApp.h"
    88
     9#include <stdio.h>
     10
    911int main(__attribute__((unused)) int argc, char **argv) {
    1012        // record app location
     
    1214       
    1315        // create application
    14         BlabberApp *blabber = new BlabberApp();
     16        BlabberApp blabber;
    1517       
    1618        // start application
    17         blabber->Run();
     19        blabber.Run();
    1820
    1921        // success on exit
  • ui/TalkView.cpp

    r79488d0 rb3285d3  
    101101
    102102        fTimeline         = new TextDocumentView("Timeline");
    103         fTimelineDocument = new TextDocument();
     103        fTimelineDocument.SetTo(new TextDocument(), true);
    104104        fTimeline->SetTextDocument(fTimelineDocument);
    105105        fTimelineScroller = new BScrollView("Timeline Scroller", fTimeline, B_WILL_DRAW, false, true);
  • ui/TalkView.h

    r79488d0 rb3285d3  
    134134        BScrollView        *fTimelineScroller;
    135135        TextDocumentView   *fTimeline;
    136         TextDocument       *fTimelineDocument;
     136        TextDocumentRef    fTimelineDocument;
    137137
    138138        BScrollView        *fMessageInputScroller;
Note: See TracChangeset for help on using the changeset viewer.