Merge lp:~ivaldi/midori/fix-1185895 into lp:midori

Proposed by André Stösel
Status: Merged
Approved by: Cris Dywan
Approved revision: 6182
Merged at revision: 6184
Proposed branch: lp:~ivaldi/midori/fix-1185895
Merge into: lp:midori
Diff against target: 19 lines (+1/-6)
1 file modified
midori/midori-view.c (+1/-6)
To merge this branch: bzr merge lp:~ivaldi/midori/fix-1185895
Reviewer Review Type Date Requested Status
gue5t gue5t Needs Fixing
Cris Dywan Approve
Review via email: mp+166551@code.launchpad.net

Commit message

Fix segfault when right clicking on a web view.

To post a comment you must log in.
Revision history for this message
Cris Dywan (kalikiana) wrote :

I haven't reproduced the crash, but it does still work as far as I can say after a test round. It probably should be almost identical, so there must be some sort of extra value that our code doesn't care about that WebKit uses.

review: Approve
Revision history for this message
gue5t gue5t (gue5t) wrote :

This looks good except that it will leak the event: <https://developer.gnome.org/gtk3/stable/gtk3-General.html#gtk-get-current-event>

review: Needs Fixing
Revision history for this message
André Stösel (ivaldi) wrote :

You're right, thank you. I pushed a new patch and opened a new merge request.
https://code.launchpad.net/~ivaldi/midori/fix-1185895/+merge/166727

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'midori/midori-view.c'
2--- midori/midori-view.c 2013-05-29 09:20:28 +0000
3+++ midori/midori-view.c 2013-05-30 17:04:23 +0000
4@@ -1813,14 +1813,9 @@
5
6 if (gtk_widget_get_window (view->web_view))
7 {
8- GdkEventButton ev;
9
10 if (!event) {
11- gint ex, ey;
12- event = &ev;
13- gdk_window_get_pointer (gtk_widget_get_window (view->web_view), &ex, &ey, NULL);
14- event->x = ex;
15- event->y = ey;
16+ event = (GdkEventButton *)gtk_get_current_event();
17 }
18
19 if (x != NULL)

Subscribers

People subscribed via source and target branches

to all changes: