summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2012-07-25 17:17:32 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2012-07-25 17:17:32 (GMT)
commitcbf4d8dacb7ce21b3c45a495f7ded7f46c6d2c10 (patch)
tree25dd719dc76414892b49d1725150eb9a5cd70944
parentb655d8fa28a7ae3e17572db64bb7f213901c2085 (diff)
Fix for Synaesthesia memory corruption and segfaultfixes/0.24
-rw-r--r--mythplugins/mythmusic/mythmusic/polygon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mythplugins/mythmusic/mythmusic/polygon.h b/mythplugins/mythmusic/mythmusic/polygon.h
index aec8a1d..7f365c8 100644
--- a/mythplugins/mythmusic/mythmusic/polygon.h
+++ b/mythplugins/mythmusic/mythmusic/polygon.h
@@ -15,12 +15,12 @@ struct Bitmap {
delete[] data;
width = w;
height = h;
- data = new Pixel[w*h+extra];
+ data = new Pixel[2*w*h+extra];
clear();
}
void clear() {
- memset(data,0,sizeof(Pixel)*(width*height+extra));
+ memset(data,0,sizeof(Pixel)*(2*width*height+extra));
}
};
#endif