2010-09-14 Hyung Song <beergun@company100.net>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Sep 2010 02:31:30 +0000 (02:31 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Sep 2010 02:31:30 +0000 (02:31 +0000)
        Reviewed by Kent Tamura.

        [BREWMP] Add IMemGroup and IMemSpace to OwnPtr type.
        https://bugs.webkit.org/show_bug.cgi?id=44764

        * wtf/OwnPtrCommon.h:
        * wtf/brew/OwnPtrBrew.cpp:
        (WTF::deleteOwnedPtr):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@67529 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/wtf/OwnPtrCommon.h
JavaScriptCore/wtf/brew/OwnPtrBrew.cpp

index 38bf5ef06e5c2fd30eb39865f24a2fa91d3944b8..a459e3f06e4ef608546bf6e62c5c1416ccc94467 100644 (file)
@@ -1,3 +1,14 @@
+2010-09-14  Hyung Song  <beergun@company100.net>
+
+        Reviewed by Kent Tamura.
+
+        [BREWMP] Add IMemGroup and IMemSpace to OwnPtr type.
+        https://bugs.webkit.org/show_bug.cgi?id=44764
+
+        * wtf/OwnPtrCommon.h:
+        * wtf/brew/OwnPtrBrew.cpp:
+        (WTF::deleteOwnedPtr):
+
 2010-09-14  Darin Adler  <darin@apple.com>
 
         Reviewed by Geoffrey Garen.
index 37c135d33e055b9ebb3d748fd887e136f5efd25f..19256eabc372621732174f50285715163483b49c 100644 (file)
@@ -46,6 +46,8 @@ typedef struct _IFileMgr IFileMgr;
 typedef struct _IFile IFile;
 typedef struct IBitmap IBitmap;
 typedef struct ISSL ISSL;
+typedef struct IMemGroup IMemGroup;
+typedef struct IMemSpace IMemSpace;
 #endif
 
 namespace WTF {
@@ -73,6 +75,8 @@ namespace WTF {
     void deleteOwnedPtr(IBitmap*);
     void deleteOwnedPtr(ISSL*);
     void deleteOwnedPtr(ISocket*);
+    void deleteOwnedPtr(IMemGroup*);
+    void deleteOwnedPtr(IMemSpace*);
 #endif
 
 } // namespace WTF
index 28046bd969817d72f6112d35cfc2ee1f117c7070..ce10fc3646365776f2346b9b9c8636087f1b0c2d 100644 (file)
@@ -28,6 +28,8 @@
 
 #include <AEEBitmap.h>
 #include <AEEFile.h>
+#include <AEEIMemGroup.h>
+#include <AEEIMemSpace.h>
 #include <AEENet.h>
 #include <AEESSL.h>
 #include <AEEStdLib.h>
@@ -58,6 +60,18 @@ void deleteOwnedPtr(ISSL* ptr)
         ISSL_Release(ptr);
 }
 
+void deleteOwnedPtr(IMemGroup* ptr)
+{
+    if (ptr)
+        IMemGroup_Release(ptr);
+}
+
+void deleteOwnedPtr(IMemSpace* ptr)
+{
+    if (ptr)
+        IMemSpace_Release(ptr);
+}
+
 void deleteOwnedPtr(ISocket* ptr)
 {
     if (ptr)