From: Mikko Rasa Date: Sun, 7 Feb 2021 13:49:22 +0000 (+0200) Subject: Clear Image data before loading a new image X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d9ab515e15166fe88ff45970263616d05d340e3e;p=libs%2Fgui.git Clear Image data before loading a new image --- diff --git a/source/graphics/image.cpp b/source/graphics/image.cpp index e22d8ea..50e85df 100644 --- a/source/graphics/image.cpp +++ b/source/graphics/image.cpp @@ -67,6 +67,7 @@ void Image::load_io(IO::Seekable &io) void Image::load(ImageLoader &loader) { + data = Data(); loader.load(data); }