After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668937 - Memory leak with invalid Path attributes
Memory leak with invalid Path attributes
Status: RESOLVED FIXED
Product: libgxps
Classification: Platform
Component: general
0.2.x
Other Linux
: Normal minor
: ---
Assigned To: libgxps maintainers
libgxps maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-29 00:34 UTC by Jason Crain
Modified: 2012-01-29 14:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixed memory leak when parsing a Path attribute fails (4.10 KB, patch)
2012-01-29 00:34 UTC, Jason Crain
committed Details | Review

Description Jason Crain 2012-01-29 00:34:30 UTC
Created attachment 206341 [details] [review]
Fixed memory leak when parsing a Path attribute fails

When a XPS document contains a Path element with invalid attributes, a GXPSPath struct is leaked.

For example:
<Path Stroke="asdf" />
<Path Fill="asdf" />
...etc

This patch calls gxps_path_free in more code paths.
Comment 1 Carlos Garcia Campos 2012-01-29 14:08:57 UTC
Review of attachment 206341 [details] [review]:

Pushed to git master. Thanks!