Fix #3619 and some minor clean-ups

This commit is contained in:
Flössie
2017-01-22 19:28:46 +01:00
parent 3f62b14703
commit 4649e1306f
6 changed files with 25 additions and 20 deletions

View File

@@ -117,22 +117,19 @@ int StdImageSource::load (const Glib::ustring &fname, bool batch)
switch (sFormat) {
case (IIOSF_UNSIGNED_CHAR): {
Image8 *img_8 = new Image8 ();
img = img_8;
img = new Image8;
break;
}
case (IIOSF_UNSIGNED_SHORT): {
Image16 *img_16 = new Image16 ();
img = img_16;
img = new Image16;
break;
}
case (IIOSF_LOGLUV24):
case (IIOSF_LOGLUV32):
case (IIOSF_FLOAT): {
Imagefloat *img_float = new Imagefloat ();
img = img_float;
img = new Imagefloat;
break;
}