projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23e9a0
)
cairo: Avoid GLib-GObject-CRITICAL from g_object_unref() on error path.
author
Ben Pfaff
<blp@gnu.org>
Sat, 6 Feb 2010 04:11:33 +0000
(20:11 -0800)
committer
Ben Pfaff
<blp@gnu.org>
Sat, 6 Feb 2010 04:14:18 +0000
(20:14 -0800)
This could be triggered by an error creating the output file, e.g. by
tests/bugs/unwritable-dir.sh.
src/output/cairo.c
patch
|
blob
|
history
diff --git
a/src/output/cairo.c
b/src/output/cairo.c
index 94dafd886b7914356b856701c09e6564269426b1..3584f30f575c4ef680d1d232ed3350f3e9e51ad3 100644
(file)
--- a/
src/output/cairo.c
+++ b/
src/output/cairo.c
@@
-895,7
+895,8
@@
free_font (struct xr_font *font)
if (font->desc != NULL)
pango_font_description_free (font->desc);
pango_font_metrics_unref (font->metrics);
- g_object_unref (font->layout);
+ if (font->layout != NULL)
+ g_object_unref (font->layout);
}
/* Cairo driver class. */