summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 01:31:22 +0000
committerracarr <racarr>2007-01-29 01:31:22 +0000
commit20e30ebd0ea12b23dd39e09fe5b1ce0cf6e25da9 (patch)
tree6a31cb8c0fdf816c4831c22a38c96075fb55aee4
parent8f9e7245513af0d34c0a033eafcb374552b4296d (diff)
downloadberyl-desktop-manager-20e30ebd0ea12b23dd39e09fe5b1ce0cf6e25da9.tar.gz
beryl-desktop-manager-20e30ebd0ea12b23dd39e09fe5b1ce0cf6e25da9.tar.bz2
malloc BDMPaintAttribs on widget...
-rw-r--r--src/bdm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 5b99971..2843abb 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -191,6 +191,7 @@ static void on_alpha_screen_changed(GtkWidget * widget, GdkScreen * pOldScreen,
static void initPaintAttribs (BDMPaintAttribs * attribs)
{
+ attribs = malloc(sizeof(BDMPaintAttribs));
attribs->width = attribs->height = attribs->x = attribs->y = attribs->xrot = 100;
attribs->needsPainting = attribs->updateFont = 0;
attribs->alpha = 1.0f;