Skip to content
Browse files

Fix for Synaesthesia memory corruption and segfault

  • Loading branch information...
1 parent b655d8f commit cbf4d8dacb7ce21b3c45a495f7ded7f46c6d2c10 @stuartm stuartm committed Jul 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythplugins/mythmusic/mythmusic/polygon.h
View
4 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

0 comments on commit cbf4d8d

Please sign in to comment.
Something went wrong with that request. Please try again.