[grilo/0.1.x] test-ui: Fix leaks
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/0.1.x] test-ui: Fix leaks
- Date: Sat, 26 May 2012 23:04:25 +0000 (UTC)
commit ff881ab64b3abddf77106dd707432002666f6e54
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Sat May 26 17:17:10 2012 +0000
test-ui: Fix leaks
tools/grilo-test-ui/main.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 9c68f7d..342d6e7 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -1499,8 +1499,8 @@ set_flickr_config (void)
grl_config_set_api_secret (config, FLICKR_SECRET);
grl_config_set_api_token (config, token);
grl_plugin_registry_add_config (registry, config, NULL);
- g_free (token);
}
+ g_free (token);
}
static void
@@ -1819,6 +1819,9 @@ show_plugins ()
BROWSER_MODEL_NAME, name,
BROWSER_MODEL_ICON, icon,
-1);
+ if (icon) {
+ g_object_unref (icon);
+ }
}
g_list_free (sources);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]