diff options
author | Ted Gould <ted@gould.cx> | 2011-09-23 16:00:58 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-09-23 16:00:58 -0500 |
commit | be4dca14aedcd3fc3482e593d1bcce69fe53d0bd (patch) | |
tree | 1b43cc7c0583a13d6d9f22bc8618f9dad5c9a26c /libdbusmenu-glib | |
parent | 451acabd0340c1f0196ec0fe8a6ef62ead4e77f9 (diff) | |
download | libdbusmenu-be4dca14aedcd3fc3482e593d1bcce69fe53d0bd.tar.gz libdbusmenu-be4dca14aedcd3fc3482e593d1bcce69fe53d0bd.tar.bz2 libdbusmenu-be4dca14aedcd3fc3482e593d1bcce69fe53d0bd.zip |
Ensure the class is correct
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index 4e037ee..c9c7736 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -1730,7 +1730,7 @@ dbusmenu_menuitem_send_about_to_show (DbusmenuMenuitem * mi, void (*cb) (Dbusmen #endif DbusmenuMenuitemClass * class = DBUSMENU_MENUITEM_GET_CLASS(mi); - if (class->send_about_to_show != NULL) { + if (class != NULL && class->send_about_to_show != NULL) { return class->send_about_to_show(mi, cb, cb_data); } else if (cb != NULL) { cb(mi, cb_data); |