summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/nine_box.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 16:52:36 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 16:52:36 +0000
commitde2baedbb8df526db72fb6ddc151e9435db8b78f (patch)
treeb31900fe03fd0421907ae79f1216f5b55042363f /chrome/browser/gtk/nine_box.cc
parent6deb272a76b6214157cb9dec271e4c4e1a6d3e8f (diff)
downloadchromium_src-de2baedbb8df526db72fb6ddc151e9435db8b78f.zip
chromium_src-de2baedbb8df526db72fb6ddc151e9435db8b78f.tar.gz
chromium_src-de2baedbb8df526db72fb6ddc151e9435db8b78f.tar.bz2
Have ResourceBundle own GdkPixbufs.
This is the same as how ResourceBundle owns the SkBitmaps it loads. This should be faster than before because ResourceBundle will only load each bitmap once and cache the image. Also fix a memory leak in GdkPixbufFromSkBitmap. valgrind says we're not leaking here. BUG=9988 Review URL: http://codereview.chromium.org/67179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/nine_box.cc')
-rw-r--r--chrome/browser/gtk/nine_box.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/chrome/browser/gtk/nine_box.cc b/chrome/browser/gtk/nine_box.cc
index e2c42f6..c1147c7 100644
--- a/chrome/browser/gtk/nine_box.cc
+++ b/chrome/browser/gtk/nine_box.cc
@@ -38,10 +38,6 @@ NineBox::NineBox(GdkPixbuf* images[9]) {
}
NineBox::~NineBox() {
- for (int i = 0; i < 9; ++i) {
- if (images_[i])
- gdk_pixbuf_unref(images_[i]);
- }
}
void NineBox::RenderToWidget(GtkWidget* dst) {