diff options
author | Ted Gould <ted@gould.cx> | 2011-02-22 12:53:51 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-22 12:53:51 -0600 |
commit | 5c94d5556de25dea4033364d72b526f2bf678728 (patch) | |
tree | 5503d8670cbab37b2a0b13e0cb6a9e028a1eeca2 /libdbusmenu-glib/server.c | |
parent | c7c480a91a43d395dfb4427daae7b60fbda2639e (diff) | |
parent | 25160024c6c2c64cbd14529abd0796b6f3be83d3 (diff) | |
download | libdbusmenu-5c94d5556de25dea4033364d72b526f2bf678728.tar.gz libdbusmenu-5c94d5556de25dea4033364d72b526f2bf678728.tar.bz2 libdbusmenu-5c94d5556de25dea4033364d72b526f2bf678728.zip |
Merging U. Desktop
Diffstat (limited to 'libdbusmenu-glib/server.c')
-rw-r--r-- | libdbusmenu-glib/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index aa39991..de8a9b9 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -892,7 +892,9 @@ menuitem_property_changed (DbusmenuMenuitem * mi, gchar * property, GVariant * v /* If so, we need to swap the value */ if (prop != NULL) { - g_variant_unref(prop->variant); + if (prop->variant != NULL) { + g_variant_unref(prop->variant); + } prop->variant = variant; } else { /* else we need to add it */ |