Multiple composition are still not supported, but this patch fixes a
memory leak if it is tried to be applied.
#endif
style->comp.method = CompositeMethod::ClipPath;
int len = strlen(value);
- if (len >= 3 && !strncmp(value, "url", 3)) style->comp.url = _idFromUrl((const char*)(value + 3));
+ if (len >= 3 && !strncmp(value, "url", 3)) {
+ //FIXME: Support multiple composition.
+ if (style->comp.url) delete(style->comp.url);
+ style->comp.url = _idFromUrl((const char*)(value + 3));
+ }
}