Changeset 152444 in webkit


Ignore:
Timestamp:
Jul 8, 2013 2:00:34 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Leak: GFile* leaking in beginDragWithFilesCallback
https://bugs.webkit.org/show_bug.cgi?id=118412

Patch by Brian Holt <brian.holt@samsung.com> on 2013-07-08
Reviewed by Martin Robinson.

An adoptRef is required to balance ref and deref calls.

  • DumpRenderTree/gtk/EventSender.cpp:

(beginDragWithFilesCallback):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r152436 r152444  
     12013-07-08  Brian Holt  <brian.holt@samsung.com>
     2
     3        [GTK] Leak: GFile* leaking in beginDragWithFilesCallback
     4        https://bugs.webkit.org/show_bug.cgi?id=118412
     5
     6        Reviewed by Martin Robinson.
     7
     8        An adoptRef is required to balance ref and deref calls.
     9
     10        * DumpRenderTree/gtk/EventSender.cpp:
     11        (beginDragWithFilesCallback):
     12
    1132013-07-06  Sergio Correia  <sergio.correia@openbossa.org>
    214
  • trunk/Tools/DumpRenderTree/gtk/EventSender.cpp

    r137338 r152444  
    542542    if (g_str_equal(scheme.get(), "http") || g_str_equal(scheme.get(), "https")) {
    543543        GOwnPtr<gchar> currentDirectory(g_get_current_dir());
    544         parentDirectory = g_file_new_for_path(currentDirectory.get());
     544        parentDirectory = adoptGRef(g_file_new_for_path(currentDirectory.get()));
    545545    }
    546546
Note: See TracChangeset for help on using the changeset viewer.