[at-spi2-core] need to dup a role name when fetching it from a value



commit c13c62f42091dc74054b11e4194981b37b21a502
Author: Mike Gorse <mgorse suse com>
Date:   Tue May 14 10:51:45 2013 -0500

    need to dup a role name when fetching it from a value

 atspi/atspi-accessible.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c
index fc2b48f..534912e 100644
--- a/atspi/atspi-accessible.c
+++ b/atspi/atspi-accessible.c
@@ -501,7 +501,7 @@ atspi_accessible_get_role_name (AtspiAccessible *obj, GError **error)
 
   if (value)
     {
-      retval = value->value_nick;
+      retval = g_strdup (value->value_nick);
     }
 
   if (retval)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]