From 3cb611cbbfac715ee331f60c397cffad81464160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 23 Jun 2012 17:31:57 +0200 Subject: [PATCH] TgaImporter: quick ugly fix - don't delete the image data on closing. It causes problems in ColladaImporter, because it uses TgaImporter for opening the image, then takes ownership of the data and then destroys the importer. Need to think this thoroughly. --- src/Plugins/TgaImporter/TgaImporter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Plugins/TgaImporter/TgaImporter.cpp b/src/Plugins/TgaImporter/TgaImporter.cpp index cfb3bc3bd..97c96e756 100644 --- a/src/Plugins/TgaImporter/TgaImporter.cpp +++ b/src/Plugins/TgaImporter/TgaImporter.cpp @@ -96,7 +96,8 @@ bool TgaImporter::open(istream& in, const string& name) { } void TgaImporter::close() { - delete _image; + /** @todo fixme: delete it only if it wasn't retrieved by user */ + //delete _image; _image = nullptr; }