[gnome-panel] libpanel-applet: Fix crashes in applets on background changes
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] libpanel-applet: Fix crashes in applets on background changes
- Date: Tue, 1 Feb 2011 22:14:30 +0000 (UTC)
commit 88b9beeb8ab69072fe6912af33c620143d17b0a3
Author: Vincent Untz <vuntz gnome org>
Date: Tue Feb 1 23:13:09 2011 +0100
libpanel-applet: Fix crashes in applets on background changes
We could return a random value from
panel_applet_get_pattern_from_pixmap(), and that was very nasty.
libpanel-applet/panel-applet.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libpanel-applet/panel-applet.c b/libpanel-applet/panel-applet.c
index eb4bed2..fb9db37 100644
--- a/libpanel-applet/panel-applet.c
+++ b/libpanel-applet/panel-applet.c
@@ -1415,6 +1415,8 @@ panel_applet_get_pattern_from_pixmap (PanelApplet *applet,
cairo_surface_destroy (background);
+ pattern = NULL;
+
if (cairo_status (cr) == CAIRO_STATUS_SUCCESS) {
pattern = cairo_pattern_create_for_surface (surface);
cairo_matrix_init_translate (&matrix, 0, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]