From e29e68abac06cbd2009b09598420147f02301de2 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 1 Jul 2008 17:50:19 +0200 Subject: [PATCH] Use the GErrors in MMDBusCategories. --- src/mm-dbus-category.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mm-dbus-category.c b/src/mm-dbus-category.c index 373a0f2..8e048f8 100644 --- a/src/mm-dbus-category.c +++ b/src/mm-dbus-category.c @@ -59,6 +59,11 @@ mm_dbus_category_get_hits (MMCategory *c, mm_dbus_application_get_path (MM_DBUS_APPLICATION (app)), "org.gnome.MediaManager.Application"); serial_filter = mm_filter_serialize (f, &error); + if (error) { + g_warning ("Unable to serialize the filter object: %s", error->message); + g_error_free (error); + goto out; + } ret = dbus_g_proxy_call (app_proxy, "GetHits", &error, @@ -78,6 +83,11 @@ mm_dbus_category_get_hits (MMCategory *c, } hit_collection = mm_hit_collection_unserialize (serial_hit_collection, &error); + if (error) { + g_warning ("Unable to unserialize the HitCollection: %s", error->message); + g_error_free (error); + goto out; + } out: g_free (serial_filter); -- 2.11.4.GIT