aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-23 16:00:58 -0500
committerTed Gould <ted@gould.cx>2011-09-23 16:00:58 -0500
commitbe4dca14aedcd3fc3482e593d1bcce69fe53d0bd (patch)
tree1b43cc7c0583a13d6d9f22bc8618f9dad5c9a26c /libdbusmenu-glib
parent451acabd0340c1f0196ec0fe8a6ef62ead4e77f9 (diff)
downloadlibdbusmenu-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.c2
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);