Changeset 44183 in webkit for trunk/JavaScriptCore
- Timestamp:
- May 27, 2009, 3:21:49 AM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r44174 r44183 1 2009-05-26 Holger Hans Peter Freyther <[email protected]> 2 3 Reviewed by Xan Lopez. 4 5 https://bugs.webkit.org/show_bug.cgi?id=25613 6 7 Be able to use GOwnPtr for GHashTable as well. The assumption 8 is that the hash table has been created with g_hash_table_new_full 9 and has proper destruction functions. 10 11 * wtf/GOwnPtr.cpp: 12 (WTF::GHashTable): 13 * wtf/GOwnPtr.h: 14 1 15 2009-05-26 Oliver Hunt <[email protected]> 2 16 -
trunk/JavaScriptCore/wtf/GOwnPtr.cpp
r37660 r44183 57 57 } 58 58 59 template <> void freeOwnedGPtr<GHashTable>(GHashTable* ptr) 60 { 61 if (ptr) 62 g_hash_table_unref(ptr); 63 } 64 59 65 } // namespace WTF -
trunk/JavaScriptCore/wtf/GOwnPtr.h
r37660 r44183 36 36 template<> void freeOwnedGPtr<GPatternSpec>(GPatternSpec*); 37 37 template<> void freeOwnedGPtr<GDir>(GDir*); 38 template<> void freeOwnedGPtr<GHashTable>(GHashTable*); 38 39 39 40 template <typename T> class GOwnPtr : Noncopyable {
Note:
See TracChangeset
for help on using the changeset viewer.