Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms_attachment_image] Fixed newly introduced memory leak
  • Loading branch information
monich committed Mar 4, 2014
1 parent 969fda8 commit ea4fd87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mms-lib/src/mms_attachment_image.c
Expand Up @@ -262,6 +262,7 @@ mms_attachment_image_resize(
GError* error = NULL;
GMappedFile* map = g_mapped_file_new(image->resized, FALSE, &error);
if (map) {
if (at->map) g_mapped_file_unref(at->map);
at->file_name = image->resized;
at->map = map;
} else {
Expand Down

0 comments on commit ea4fd87

Please sign in to comment.