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
=== modified file 'midori/midori-view.c'
--- midori/midori-view.c 2013-05-29 09:20:28 +0000
+++ midori/midori-view.c 2013-05-30 17:04:23 +0000
@@ -1813,14 +1813,9 @@
18131813
1814 if (gtk_widget_get_window (view->web_view))1814 if (gtk_widget_get_window (view->web_view))
1815 {1815 {
1816 GdkEventButton ev;
18171816
1818 if (!event) {1817 if (!event) {
1819 gint ex, ey;1818 event = (GdkEventButton *)gtk_get_current_event();
1820 event = &ev;
1821 gdk_window_get_pointer (gtk_widget_get_window (view->web_view), &ex, &ey, NULL);
1822 event->x = ex;
1823 event->y = ey;
1824 }1819 }
18251820
1826 if (x != NULL)1821 if (x != NULL)

Subscribers

People subscribed via source and target branches

to all changes: