aboutsummaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-17 14:48:58 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-03-17 14:48:58 -0500
commit22a82f675f9552756ecac17b0a53a09bb20d1b46 (patch)
tree596cfb39fadb4cdd6bd8303b1ed1419e79451f12 /po
parenta9ab1c3e64481d4ea4cd6d540b0dc75b055193d1 (diff)
downloadayatana-indicator-power-22a82f675f9552756ecac17b0a53a09bb20d1b46.tar.gz
ayatana-indicator-power-22a82f675f9552756ecac17b0a53a09bb20d1b46.tar.bz2
ayatana-indicator-power-22a82f675f9552756ecac17b0a53a09bb20d1b46.zip
Fix memory leaks in get_primary_device().
1. All the calls to g_variant_get_child_value() were leaked. Fixed by changing the use to g_variant_get_child() and keeping index values of the interesting children instead of pointers to them. 2. There were several paths where the local string "object_path" and "device_icon" were leaked. (For example, any non-battery entry given to us by upower). Fixed by making these const strings and peeking them from the variant with "&s" instead of "s".
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions