summaryrefslogtreecommitdiffstats
path: root/src/display/cairo-utils.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-10-13 15:24:57 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-10-13 15:24:57 +0000
commitd3f86d34d0d92505a798f8c9b83ca12dfcbf50ab (patch)
tree69ab725c5c6a24ed10a538e5ad0551d4d86dc530 /src/display/cairo-utils.cpp
parentUnits: stop newing Unit objects. pass around pointers to "undeletable" Unit o... (diff)
downloadinkscape-d3f86d34d0d92505a798f8c9b83ca12dfcbf50ab.tar.gz
inkscape-d3f86d34d0d92505a798f8c9b83ca12dfcbf50ab.zip
cppcheck
(bzr r12680)
Diffstat (limited to 'src/display/cairo-utils.cpp')
-rw-r--r--src/display/cairo-utils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/display/cairo-utils.cpp b/src/display/cairo-utils.cpp
index 451f0b509..5b358ade7 100644
--- a/src/display/cairo-utils.cpp
+++ b/src/display/cairo-utils.cpp
@@ -254,7 +254,6 @@ Pixbuf *Pixbuf::create_from_data_uri(gchar const *uri_data)
}
if ((*data) && data_is_image && data_is_base64) {
- GdkPixbuf *buf = NULL;
GdkPixbufLoader *loader = gdk_pixbuf_loader_new();
if (!loader) return NULL;
@@ -264,7 +263,7 @@ Pixbuf *Pixbuf::create_from_data_uri(gchar const *uri_data)
if (gdk_pixbuf_loader_write(loader, decoded, decoded_len, NULL)) {
gdk_pixbuf_loader_close(loader, NULL);
- buf = gdk_pixbuf_loader_get_pixbuf(loader);
+ GdkPixbuf *buf = gdk_pixbuf_loader_get_pixbuf(loader);
if (buf) {
g_object_ref(buf);
pixbuf = new Pixbuf(buf);