[WK2] Fix for crash issue while destroying ImageBuffer
authorShanmuga Pandi M <shanmuga.m@samsung.com>
Thu, 25 Apr 2013 06:56:41 +0000 (12:26 +0530)
committerShanmuga Pandi M <shanmuga.m@samsung.com>
Thu, 25 Apr 2013 06:56:41 +0000 (12:26 +0530)
commit832a796ffe9f0256ffe0bb003d68c457f0948a6d
tree54b5b7c2a788e7c1f1cd9c5f6e7e705664acd747
parente9427f4e3b51dab0cc104e825147e91da480f094
[WK2] Fix for crash issue while destroying ImageBuffer

[Title] Fix for crash issue while destroying ImageBuffer
[issue#] Web-2975
[Problem] crash while go back to previous page
[Cause] While destroying ImageBuffer we just calling cairo_surface_destroy, but we not calling
cairo_surface_flush. Since cairo_surface_flush is getting called some times after destroying cairo_surface by cairo internally which leads to crash.
[Solution] calling cairo_surface_flush before destroying cairo_surface_destroy.
[Developer] shanmuga.m

Change-Id: I59932e2c2547e902a388165f5d8bf6b2763aead4
Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp [changed mode: 0644->0755]