X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=atk-adaptor%2Fadaptors%2Fhypertext-adaptor.c;h=6569eaaac210e9bcf49fc113c59580a36ea76c18;hb=6fc02645f8c017457a051344353bedeb9dffb034;hp=3cd1f36f5825ead39d62ed563ecad5409f77a7b6;hpb=b3cf1376c388c7ff5cc84bca99e05833f326f919;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/atk-adaptor/adaptors/hypertext-adaptor.c b/atk-adaptor/adaptors/hypertext-adaptor.c index 3cd1f36..6569eaa 100644 --- a/atk-adaptor/adaptors/hypertext-adaptor.c +++ b/atk-adaptor/adaptors/hypertext-adaptor.c @@ -25,7 +25,7 @@ #include #include -#include "common/spi-dbus.h" +#include "spi-dbus.h" #include "object.h" #include "introspection.h" @@ -66,7 +66,10 @@ impl_GetLink (DBusConnection * bus, DBusMessage * message, void *user_data) return droute_invalid_arguments_error (message); } link = atk_hypertext_get_link (hypertext, linkIndex); - return spi_object_return_reference (message, ATK_OBJECT (hypertext)); + /*The above line doesn't ref the link, and the next call is going to unref*/ + if (link) + g_object_ref (link); + return spi_hyperlink_return_reference (message, link); } static DBusMessage * @@ -108,5 +111,5 @@ void spi_initialize_hypertext (DRoutePath * path) { droute_path_add_interface (path, - SPI_DBUS_INTERFACE_HYPERTEXT, spi_org_a11y_atspi_Hypertext, methods, NULL); + ATSPI_DBUS_INTERFACE_HYPERTEXT, spi_org_a11y_atspi_Hypertext, methods, NULL); };