URL:
  <http://gna.org/patch/?2489>

                 Summary: Clear output window (and free its resources) on
exit
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Mon 07 Feb 2011 04:05:35 AM EET
                Category: client
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.3.0

    _______________________________________________________

Details:

Valgrind says:

==24431== 30,384 bytes in 726 blocks are possibly lost in loss record 11,767
of 11,801
==24431==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
==24431==    by 0xA091534: g_malloc (gmem.c:132)
==24431==    by 0x7A5149F: _gtk_char_segment_new (gtktextsegment.c:198)
==24431==    by 0x7A3564F: _gtk_text_btree_insert (gtktextbtree.c:1177)
==24431==    by 0x7A3D5A2: gtk_text_buffer_real_insert_text
(gtktextbuffer.c:868)
==24431==    by 0x980147D: g_closure_invoke (gclosure.c:767)
==24431==    by 0x981703F: signal_emit_unlocked_R (gsignal.c:3286)
==24431==    by 0x9818A75: g_signal_emit_valist (gsignal.c:2981)
==24431==    by 0x9818FC2: g_signal_emit (gsignal.c:3038)
==24431==    by 0x487F58: real_output_window_append (chatline.c:901)
==24431==    by 0x41B1ED: handle_event (climisc.c:1020)
==24431==    by 0x41B489: create_event (climisc.c:1048)
==24431==    by 0x43B3AA: handle_new_year (packhand.c:1000)
==24431==    by 0x43FD38: client_handle_packet (packhand_gen.c:234)
==24431==    by 0x418E2D: client_packet_input (client_main.c:565)
==24431==    by 0x41DEF4: input_from_server (clinet.c:417)
==24431==    by 0x7EAAC4E: gdk_io_invoke (gdkevents.c:1082)
==24431==    by 0xA0886F1: g_main_context_dispatch (gmain.c:1960)
==24431==    by 0xA08C567: g_main_context_iterate (gmain.c:2591)
==24431==    by 0xA08CA74: g_main_loop_run (gmain.c:2799)

Untested patch attached.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 07 Feb 2011 04:05:35 AM EET  Name: FreeOPWOnExit.diff  Size: 379B  
By: cazfi

<http://gna.org/patch/download.php?file_id=12304>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?2489>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to