summaryrefslogtreecommitdiff
path: root/src/DataImage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/DataImage.cxx')
-rw-r--r--src/DataImage.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DataImage.cxx b/src/DataImage.cxx
index c230ed1..f7109cd 100644
--- a/src/DataImage.cxx
+++ b/src/DataImage.cxx
@@ -30,6 +30,7 @@
DataImage::DataImage(int X, int Y, int W, int H): Fl_Widget(X, Y, W, H) {
d = 3;
data = (uchar*) malloc(W * H * d);
+ memset(data, 0, W * H * d);
}
DataImage::~DataImage() {