[cairo-bugs] [Bug 91967] Assertion "(_cairo_atomic_int_get (&(&surface->ref_count)->ref_count) > 0)"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 24 08:32:44 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=91967

--- Comment #19 from Jaroslav Škarvada <jskarvad at redhat.com> ---
Adding image = NULL fixes the problem, because the second free doesn't happen,
i.e. the following check in cairo_surface.c:949 returns

if (surface == NULL ||
  CAIRO_REFERENCE_COUNT_IS_INVALID (&surface->ref_count))
return

AFAICS the &image->base is pointer to the same memory as image, it's just
different pointer type. Maybe there is a better fix, e.g. to just BAIL or
return some error, but this problem needs definitely to be fixed. Just ignoring
it will not help anyone.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20160524/44a08dc4/attachment-0001.html>


More information about the cairo-bugs mailing list