Changeset 60673 in webkit


Ignore:
Timestamp:
Jun 4, 2010 3:56:39 AM (14 years ago)
Author:
alex
Message:

2010-06-04 Alejandro G. Castro <alex@igalia.com>

Reviewed by Xan Lopez.

Leaks in listDirectory
https://bugs.webkit.org/show_bug.cgi?id=40008

Fixed both leaks.

  • platform/gtk/FileSystemGtk.cpp: (WebCore::listDirectory):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r60670 r60673  
     12010-06-04  Alejandro G. Castro  <alex@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        Leaks in listDirectory
     6        https://bugs.webkit.org/show_bug.cgi?id=40008
     7
     8        Fixed both leaks.
     9
     10        * platform/gtk/FileSystemGtk.cpp:
     11        (WebCore::listDirectory):
     12
    1132010-06-04  Anton Muhin  <antonm@chromium.org>
    214
  • trunk/WebCore/platform/gtk/FileSystemGtk.cpp

    r60668 r60673  
    206206            continue;
    207207
    208         gchar* entry = g_build_filename(filename.data(), name, NULL);
    209         entries.append(filenameToString(entry));
    210         g_free(entry);
    211     }
     208        GOwnPtr<gchar> entry(g_build_filename(filename.data(), name, NULL));
     209        entries.append(filenameToString(entry.get()));
     210    }
     211    g_pattern_spec_free(pspec);
    212212    g_dir_close(dir);
    213213
Note: See TracChangeset for help on using the changeset viewer.