Pete French wrote:
I am seeing consistent memory problems when using a clipping path in
GNUstep. Sometimes this manifests itself as the clip working properly, but
then I get a "Warning: free() called on already freed memory" when the code
exits, but most of the time it manifests itself as a coredump when the
code actually runs. I havent yet managed to track down the source of the
proiblem though, as the debugger never seems to give me any useful info
as to where the memory smash originally occurred.
Seems to me that -_doPath::draw: was calling XIntersectRegion() without
creating the region, thus causing the crash. I've attached a patch that
fixes it. With the patch it works here.