2013-12-09  Igor Oliveira  <igor.o@sisa.samsung.com>

        Fix WebCLEvent implementation
        Reviewed by Antonio.

        Add a new method called WebCLObject::platformObjectRef to be
        used by WebCLCommandQueue when initializing WebCLEvent objects.

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::ccEventFromWebCLEvent):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferBase):
        * Modules/webcl/WebCLObject.h:
        (WebCore::WebCLObjectImpl::platformObjectRef):
2013-12-09  Igor Oliveira  <igor.o@sisa.samsung.com>

        Fix WebCLObject::releasePlatformObject
        Issue #373

        Reviewed by Antonio.

        releasePlatformObject needs to verify if platformObject is valid
        before calling releasePlatformObjectImpl.

        * Modules/webcl/WebCLEvent.cpp:
        (WebCore::WebCLEvent::releasePlatformObjectImpl):
        * Modules/webcl/WebCLObject.h:
        (WebCore::WebCLObjectImpl::releasePlatformObject):