Bug 16458 - Trying to free a GdkEvent: pointer=NULL
Summary: Trying to free a GdkEvent: pointer=NULL
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux-GTK
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-20 14:03 EDT by Boris Shingarov CLA
Modified: 2002-05-21 13:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Shingarov CLA 2002-05-20 14:03:20 EDT
ControlExample prints many warnings:

gdk_event_free: assertion `event != NULL' failed
Comment 1 Boris Shingarov CLA 2002-05-20 14:14:22 EDT
The new code for getting event time (Widget.postEvent, Widget.sendEvent),
doesn't check for special cases.
Transferring to the code contributor for investigation.
P.S.:  I've talked to SSQ.  He believes the current code is wrong.
Comment 2 Boris Shingarov CLA 2002-05-21 01:14:20 EDT
Commented out the new code.

Apparently, this bug was the cause of 16318, 16523, and 16525.
Comment 3 Boris Shingarov CLA 2002-05-21 10:53:57 EDT
Also causes 16565.
Comment 4 Silenio Quarti CLA 2002-05-21 13:55:32 EDT
The code should call gtk_get_current_event() instead of
gdk_event_get(). Or even better gtk_get_current_event_time().

Fixed > 20020521