Changeset 157124 in webkit


Ignore:
Timestamp:
Oct 8, 2013 11:25:16 AM (11 years ago)
Author:
ChangSeok Oh
Message:

[GTK] Leak: GdkEvent retured by gtk_get_current_event is not freed.
https://bugs.webkit.org/show_bug.cgi?id=122506

Reviewed by Gustavo Noronha Silva.

Gdk event returned by gtk_get_current_event should be freed after using it.

No functionality changed.

  • platform/gtk/PopupMenuGtk.cpp:

(WebCore::PopupMenuGtk::show):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r157123 r157124  
     12013-10-08  ChangSeok Oh  <changseok.oh@collabora.com>
     2
     3        [GTK] Leak: GdkEvent retured by gtk_get_current_event is not freed.
     4        https://bugs.webkit.org/show_bug.cgi?id=122506
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        Gdk event returned by gtk_get_current_event should be freed after using it.
     9
     10        No functionality changed.
     11
     12        * platform/gtk/PopupMenuGtk.cpp:
     13        (WebCore::PopupMenuGtk::show):
     14
    1152013-10-08  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Source/WebCore/platform/gtk/PopupMenuGtk.cpp

    r111354 r157124  
    2929
    3030#include "FrameView.h"
    31 #include <wtf/gobject/GOwnPtr.h>
     31#include "GOwnPtrGtk.h"
    3232#include "GtkUtilities.h"
    3333#include "HostWindow.h"
    3434#include <gtk/gtk.h>
     35#include <wtf/gobject/GOwnPtr.h>
    3536#include <wtf/text/CString.h>
    3637
     
    8889    menuPosition.move(0, rect.height());
    8990
    90     m_popup->popUp(rect.size(), menuPosition, size, index, gtk_get_current_event());
     91    GOwnPtr<GdkEvent> currentEvent(gtk_get_current_event());
     92    m_popup->popUp(rect.size(), menuPosition, size, index, currentEvent.get());
    9193
    9294    // GTK can refuse to actually open the menu when mouse grabs fails.
Note: See TracChangeset for help on using the changeset viewer.