projects
/
platform
/
upstream
/
at-spi2-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
472d213
)
Fix memory leak in atspi_accessible_get_role_name
author
Mike Gorse
<mgorse@suse.com>
Wed, 10 Jul 2013 18:47:55 +0000
(13:47 -0500)
committer
Mike Gorse
<mgorse@suse.com>
Wed, 10 Jul 2013 18:47:55 +0000
(13:47 -0500)
Only dup the string once.
atspi/atspi-misc.c
patch
|
blob
|
history
diff --git
a/atspi/atspi-misc.c
b/atspi/atspi-misc.c
index
be908b5
..
8f84a14
100644
(file)
--- a/
atspi/atspi-misc.c
+++ b/
atspi/atspi-misc.c
@@
-1706,7
+1706,7
@@
atspi_role_get_name (AtspiRole role)
}
if (retval)
- return _atspi_name_compat (
g_strdup (retval)
);
+ return _atspi_name_compat (
retval
);
return NULL;
}