Skip to content

Commit

Permalink
Fix for Synaesthesia memory corruption and segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Jul 25, 2012
1 parent b655d8f commit cbf4d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythplugins/mythmusic/mythmusic/polygon.h
Expand Up @@ -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.