diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-10-28 20:50:22 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-10-28 20:50:22 +0800 |
commit | 70f083da41e85ed92b2ca8996ba1794066ac9560 (patch) | |
tree | db70ea923406d776dfb563f849a3ecaba500daf6 /embed/mozilla | |
parent | 025c7959e438aad9770f9aa801b6ead6e19e79dd (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/ContentHandler.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; |