[easytag] Fix memory leak when changing browser view mode
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix memory leak when changing browser view mode
- Date: Sun, 28 Jun 2015 20:28:17 +0000 (UTC)
commit d02b53e6ff9addaa344053bd3925ba215101ec66
Author: David King <amigadave amigadave com>
Date: Sun Jun 28 14:03:53 2015 +0100
Fix memory leak when changing browser view mode
A GVariant retrieved from an action group with
g_action_group_get_action_state() must be unreffed.
src/application_window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/application_window.c b/src/application_window.c
index e5083f7..3b47f56 100644
--- a/src/application_window.c
+++ b/src/application_window.c
@@ -1852,6 +1852,8 @@ et_application_window_browser_toggle_display_mode (EtApplicationWindow *self)
{
g_assert_not_reached ();
}
+
+ g_variant_unref (variant);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]