summaryrefslogtreecommitdiffstats
path: root/src/sp-image.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2013-09-19 15:56:58 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2013-09-19 15:56:58 +0000
commit10ad175dc0513e396f3fcd57917537b6708ab515 (patch)
tree32d53aa7a2e330d3cf44bea1458773e5030882c3 /src/sp-image.cpp
parentRemove a warning when embedding an image with a mimetype which is not (diff)
downloadinkscape-10ad175dc0513e396f3fcd57917537b6708ab515.tar.gz
inkscape-10ad175dc0513e396f3fcd57917537b6708ab515.zip
Fix serious potential bug in SPImage::print
(bzr r12543)
Diffstat (limited to 'src/sp-image.cpp')
-rw-r--r--src/sp-image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-image.cpp b/src/sp-image.cpp
index 47d8287b4..80daf33c3 100644
--- a/src/sp-image.cpp
+++ b/src/sp-image.cpp
@@ -609,7 +609,7 @@ void SPImage::print(SPPrintContext *ctx) {
t = ti * t;
sp_print_image_R8G8B8A8_N(ctx, px + trimx*pixskip + trimy*rs, trimwidth, trimheight, rs, t, this->style);
}
- g_object_unref(pb);
+ delete pb;
}
}