#1481 [GTK3] incorrect event copying

Bug
closed-fixed
GTK (7)
6
2014-06-13
2013-05-24
No

Apparently, with GTK3 gdk_drag_begin() accesses fields from the passed in event that aren't copyable by value -- whereas it worked with GTK2. So, one need to properly use gdk_event_copy() instead of ev = *event to copy the event.

Without this, starting a drag with a GTK3 Scintilla accesses freed memory.

Attached is the output from Valgrind when starting a drag under GTK3.

1 Attachments

Discussion

  • Colomban Wendling

    Example patch, but since I don't really know C++ it's probably quite ugly where it does non-C things.

     
  • Neil Hodgson

    Neil Hodgson - 2013-05-25
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
    • Priority: 5 --> 6
     
  • Neil Hodgson

    Neil Hodgson - 2013-05-25

    Committed as [e48831].

     

    Related

    Commit: [e48831]

  • Neil Hodgson

    Neil Hodgson - 2013-06-02
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks