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:
ce599c1
)
Do not free a key listener's bus name and path twice
author
Mike Gorse
<mgorse@novell.com>
Fri, 18 Mar 2011 22:30:49 +0000
(15:30 -0700)
committer
Mike Gorse
<mgorse@novell.com>
Sat, 19 Mar 2011 01:17:45 +0000
(18:17 -0700)
registryd/deviceeventcontroller.c
patch
|
blob
|
history
diff --git
a/registryd/deviceeventcontroller.c
b/registryd/deviceeventcontroller.c
index
674679d
..
2df09d0
100644
(file)
--- a/
registryd/deviceeventcontroller.c
+++ b/
registryd/deviceeventcontroller.c
@@
-859,10
+859,13
@@
spi_listener_clone_free (DEControllerListener *clone)
static void
spi_dec_listener_free (DEControllerListener *listener)
{
- g_free (listener->bus_name);
- g_free (listener->path);
if (listener->type == SPI_DEVICE_TYPE_KBD)
spi_key_listener_data_free ((DEControllerKeyListener *) listener);
+ else
+ {
+ g_free (listener->bus_name);
+ g_free (listener->path);
+ }
}
static void