diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/web-view.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web-view.c b/src/web-view.c index 4e96acb..c3ffbca 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -716,6 +716,11 @@ mq_web_view_load_uri(MqWebView *web_view, const gchar *uri) { gchar *rw_uri; + if (!uri) { + /* Happens during object construction. */ + return; + } + if (web_view->uri) { g_free(web_view->uri); } |