diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-12-11 23:14:50 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-12-11 23:14:50 +0000 |
commit | 80ccaafc44c267372214e2663bee031929fa5e64 (patch) | |
tree | 626245e814728ec1ae88e1a0eb8a3fb9022eb931 /navit/gui.c | |
parent | fa247c9f6d346c1a37a427cbda8aa649c99eaa11 (diff) | |
download | navit-80ccaafc44c267372214e2663bee031929fa5e64.tar.gz |
Fix:Core:Don't crash on right click with no gui
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4856 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/gui.c')
-rw-r--r-- | navit/gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/gui.c b/navit/gui.c index 8dc1dca3c..b0835a364 100644 --- a/navit/gui.c +++ b/navit/gui.c @@ -115,7 +115,7 @@ struct menu * gui_popup_new(struct gui *gui) { struct menu *this_; - if (! gui->meth.popup_new) + if (!gui || ! gui->meth.popup_new) return NULL; this_=g_new0(struct menu, 1); this_->priv=gui->meth.popup_new(gui->priv, &this_->meth); |