#include <config.h>
#include "PreviewImage.h"
+
+#include "Dimension.h"
#include "GraphicsImage.h"
#include "GraphicsLoader.h"
#include "PreviewLoader.h"
case ErrorUnknown:
//iloader_.filename().removeFile();
ploader_.remove(snippet_);
- break;
+ // FIXME: We need to return here, because PreviewLoader::remove
+ // removes the preview image from the cache, which deletes this
+ // object, so we should not try to do anything here.
+ return;
case Ready:
iloader_.filename().removeFile();