If width and height are 0 and pixman_traps is allocated on the heap, it would leak. Fix by simply checking width and height prior to allocating pixman_traps.
Created attachment 11156 [details] [review] Patch created with git-format-patch Don't know if this is the way you prefer to get patches from external contributors...
Pushed. Thanks.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.