diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-12-14 23:02:30 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-12-14 23:02:30 +0800 |
commit | 0a1d3de46c5b3d513158c39c42f15fa10c81a1d1 (patch) | |
tree | 80a192b0fc9a605aa4fe0036b07f4ddf55f257e0 | |
parent | 3f6d77a5dbe5ced642287f98b8d7eb146401600b (diff) | |
download | gsoc2013-epiphany-0a1d3de46c5b3d513158c39c42f15fa10c81a1d1.tar gsoc2013-epiphany-0a1d3de46c5b3d513158c39c42f15fa10c81a1d1.tar.gz gsoc2013-epiphany-0a1d3de46c5b3d513158c39c42f15fa10c81a1d1.tar.bz2 gsoc2013-epiphany-0a1d3de46c5b3d513158c39c42f15fa10c81a1d1.tar.lz gsoc2013-epiphany-0a1d3de46c5b3d513158c39c42f15fa10c81a1d1.tar.xz gsoc2013-epiphany-0a1d3de46c5b3d513158c39c42f15fa10c81a1d1.tar.zst gsoc2013-epiphany-0a1d3de46c5b3d513158c39c42f15fa10c81a1d1.zip |
Some more NULL checks.
2003-12-14 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/PrintingPromptService.cpp:
Some more NULL checks.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/PrintingPromptService.cpp | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2003-12-14 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/PrintingPromptService.cpp: + + Some more NULL checks. + +2003-12-14 Christian Persch <chpe@cvs.gnome.org> + * lib/widgets/ephy-location-entry.c: (ephy_location_entry_init), (ephy_location_entry_activate_cb), (ephy_location_entry_autocompletion_window_url_activated_cb): diff --git a/embed/mozilla/PrintingPromptService.cpp b/embed/mozilla/PrintingPromptService.cpp index ac38cf637..893f4ae19 100644 --- a/embed/mozilla/PrintingPromptService.cpp +++ b/embed/mozilla/PrintingPromptService.cpp @@ -54,7 +54,9 @@ NS_IMETHODIMP GPrintingPromptService::ShowPrintDialog(nsIDOMWindow *parent, nsIW nsresult rv = NS_OK; GtkWidget *gtkParent = MozillaFindGtkParent(parent); + if (!gtkParent) return NS_ERROR_FAILURE; EphyEmbed *embed = EPHY_EMBED (MozillaFindEmbed (parent)); + if (!embed) return NS_ERROR_FAILURE; dialog = print_dialog_new_with_parent (gtkParent, embed, &info); ephy_dialog_set_modal (dialog, TRUE); |