[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9987: Fix potential memory leak by
From: |
Markus Gothe |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9987: Fix potential memory leak by unreference gdk-pixbuf after use |
Date: |
Mon, 13 Oct 2008 00:28:40 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9987
committer: Markus Gothe <address@hidden>
branch nick: gnash
timestamp: Mon 2008-10-13 00:28:40 +0200
message:
Fix potential memory leak by unreference gdk-pixbuf after use
modified:
gui/gtk.cpp
=== modified file 'gui/gtk.cpp'
--- a/gui/gtk.cpp 2008-10-10 16:56:12 +0000
+++ b/gui/gtk.cpp 2008-10-12 22:28:40 +0000
@@ -796,7 +796,7 @@
GdkPixbuf *window_icon_pixbuf = createPixbuf ("GnashG.png");
if (window_icon_pixbuf) {
gtk_window_set_icon (GTK_WINDOW (window), window_icon_pixbuf);
- gdk_pixbuf_unref (window_icon_pixbuf);
+ gdk_pixbuf_unref (window_icon_pixbuf);
}
}
@@ -1644,30 +1644,30 @@
GtkGui::showAboutDialog()
{
const gchar *documentors[] = {
- "Rob Savoye",
- "Sandro Santilli",
+ "Rob Savoye",
+ "Sandro Santilli",
"Ann Barcomb",
- NULL
+ NULL
};
const gchar *artists[] = {
"Jason Savoye",
- NULL
+ NULL
};
const gchar *authors[] = {
- "Rob Savoye",
- "Sandro Santilli",
- "Bastiaan Jacques",
- "Tomas Groth",
- "Udo Giacomozzi",
- "Hannes Mayr",
- "Markus Gothe",
- "Vitaly Alexeev",
+ "Rob Savoye",
+ "Sandro Santilli",
+ "Bastiaan Jacques",
+ "Tomas Groth",
+ "Udo Giacomozzi",
+ "Hannes Mayr",
+ "Markus Gothe",
+ "Vitaly Alexeev",
"John Gilmore",
"Zou Lunkai",
"Benjamin Wolsey",
- NULL
+ NULL
};
std::string comments = _("Gnash is the GNU SWF Player based on GameSWF.");
@@ -1762,6 +1762,8 @@
"website", "http://www.gnu.org/software/gnash/",
NULL);
#endif
+ if (logo_pixbuf)
+ gdk_pixbuf_unref(logo_pixbuf);
}
void
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9987: Fix potential memory leak by unreference gdk-pixbuf after use,
Markus Gothe <=