aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-10-28 20:50:22 +0800
committerChristian Persch <chpe@src.gnome.org>2003-10-28 20:50:22 +0800
commit70f083da41e85ed92b2ca8996ba1794066ac9560 (patch)
treedb70ea923406d776dfb563f849a3ecaba500daf6
parent025c7959e438aad9770f9aa801b6ead6e19e79dd (diff)
downloadgsoc2013-epiphany-70f083da41e85ed92b2ca8996ba1794066ac9560.tar
gsoc2013-epiphany-70f083da41e85ed92b2ca8996ba1794066ac9560.tar.gz
gsoc2013-epiphany-70f083da41e85ed92b2ca8996ba1794066ac9560.tar.bz2
gsoc2013-epiphany-70f083da41e85ed92b2ca8996ba1794066ac9560.tar.lz
gsoc2013-epiphany-70f083da41e85ed92b2ca8996ba1794066ac9560.tar.xz
gsoc2013-epiphany-70f083da41e85ed92b2ca8996ba1794066ac9560.tar.zst
gsoc2013-epiphany-70f083da41e85ed92b2ca8996ba1794066ac9560.zip
Add sanity check.
2003-10-28 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/ContentHandler.cpp: (MimeAskActionDialog::MimeAskActionDialog): Add sanity check.
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/ContentHandler.cpp7
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f2a3acf0..4b51b2e45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-10-28 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/ContentHandler.cpp:
+ (MimeAskActionDialog::MimeAskActionDialog):
+
+ Add sanity check.
+
2003-10-28 Marco Pesenti Gritti <marco@gnome.org>
* embed/ephy-embed-persist.h:
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp
index 7da5ae25c..f1fdec95c 100644
--- a/embed/mozilla/ContentHandler.cpp
+++ b/embed/mozilla/ContentHandler.cpp
@@ -571,8 +571,11 @@ MimeAskActionDialog::MimeAskActionDialog(GContentHandler *aContentHandler,
GtkWidget *aMimeIcon = glade_xml_get_widget (mGXml,
"mime_ask_action_icon");
mime_icon = ephy_gui_get_pixbuf_from_mime_type (aMimeType, 32);
- gtk_image_set_from_pixbuf (GTK_IMAGE(aMimeIcon), mime_icon);
- g_object_unref (mime_icon);
+ if (mime_icon != NULL)
+ {
+ gtk_image_set_from_pixbuf (GTK_IMAGE(aMimeIcon), mime_icon);
+ g_object_unref (mime_icon);
+ }
description = gnome_vfs_mime_get_description (aMimeType);
if (!description) description = aMimeType;