Sfoglia il codice sorgente

Absturz bei empfang von Chat nachrichten behoben

Kolja Strohm 5 anni fa
parent
commit
0723b38764
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      KSGClient/NachLogin/Chat/ChatLeiste.cpp

+ 2 - 1
KSGClient/NachLogin/Chat/ChatLeiste.cpp

@@ -103,8 +103,9 @@ void Chat::addNachricht( char *txt )
     verlauf->zTextRenderer()->textFormatieren( n, verlauf->getBreite() - 20 );
     if( n->getText()[ n->getLength() - 1 ] != '\n' )
         n->append( "\n" );
-    verlauf->zText()->append( n );
+    verlauf->zText()->append( n->getThis() );
     verlauf->setSchriftFarbe( verlauf->zText()->getLength() - n->getLength(), verlauf->zText()->getLength(), 0xFFFFFFFF );
+    n->release();
     if( animation != 4 )
         animation = 2;
     verlauf->updateVScroll();