summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguillaume <guillaume>2007-01-29 01:20:51 +0000
committerguillaume <guillaume>2007-01-29 01:20:51 +0000
commita2919ea1f6f98b9dd1c08458646151964e432ec8 (patch)
tree087df1037f0b468f909382bb822f8dff201f6ead
parent168eae3f6f2f486c2d55416645eb3386d50cac82 (diff)
downloadberyl-desktop-manager-a2919ea1f6f98b9dd1c08458646151964e432ec8.tar.gz
beryl-desktop-manager-a2919ea1f6f98b9dd1c08458646151964e432ec8.tar.bz2
bdm: fix memory corruption
-rw-r--r--src/testWidget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testWidget.c b/src/testWidget.c
index a8eaf8e..24f89a0 100644
--- a/src/testWidget.c
+++ b/src/testWidget.c
@@ -10,6 +10,8 @@ int init (BDMWidget * widget)
texts = malloc(sizeof(BDMText));
mywidget = widget;
+ images->attrib = malloc(sizeof(BDMPaintAttribs));
+
images->attrib->x = 100;
images->attrib->y = 100;
images->attrib->alpha = 1.0f;
@@ -56,4 +58,4 @@ BDMText * getTexts(void)
int handleEvent(BDMEvent * event)
{
return 1;
-} \ No newline at end of file
+}