aboutsummaryrefslogtreecommitdiff
path: root/src/Gif.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gif.cpp')
-rw-r--r--src/Gif.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Gif.cpp b/src/Gif.cpp
index 69c0be8..afd5b9d 100644
--- a/src/Gif.cpp
+++ b/src/Gif.cpp
@@ -73,7 +73,7 @@ namespace dchat
}
catch(GifLoadException &e)
{
- delete fileContent.data;
+ delete[] fileContent.data;
throw e;
}
}
@@ -89,7 +89,7 @@ namespace dchat
}
catch(GifLoadException &e)
{
- delete fileContent.data;
+ delete[] fileContent.data;
throw e;
}
}
@@ -131,7 +131,7 @@ namespace dchat
Gif::~Gif()
{
gif_finalise(&gif);
- delete fileContent.data;
+ delete[] fileContent.data;
}
sf::Vector2u Gif::getSize() const