[Webkit-unassigned] [Bug 105803] New: [EFL][WK2] Regression(138462) Sometimes garbage in snapshots
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 27 11:24:34 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=105803
Summary: [EFL][WK2] Regression(138462) Sometimes garbage in
snapshots
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ostap73 at gmail.com
In EwkViewImpl::takeSnapshot surface created by cairo_image_surface_create_for_data is returned, but buffer is release on exit.
Doc for cairo_image_surface_create_for_data here http://www.cairographics.org/manual/cairo-Image-Surfaces.html#cairo-image-surface-create-for-data says:
"The output buffer must be kept around until the cairo_surface_t is destroyed or cairo_surface_finish() is called on the surface."
It just keeps pointer internally to the provided image buffer. The data from buffer is copied only in WKImageCreateFromCairoSurface.
Mostly it works because data is copied immediately after return from already deallocated memory block, but I don't think it is right.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list