[epiphany] web-view: Add an assertion



commit 70ae1bb851c916af0005b28d739ce25b7a4247cd
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Jan 24 19:30:07 2016 -0600

    web-view: Add an assertion
    
    An early return here leads to memory leaks. We should never hit this
    because (a) we'd better have an error page for every error type, and (b)
    if we don't there will be a compiler warning thanks to the new warning
    flags.

 embed/ephy-web-view.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 942df63..bef99c5 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1927,8 +1927,7 @@ ephy_web_view_load_error_page (EphyWebView *view,
                                         webkit_web_view_get_page_id (WEBKIT_WEB_VIEW (view)));
       break;
     default:
-      return;
-      break;
+      g_assert_not_reached ();
   }
   g_free (hostname);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]