From aa5d7267ff72af5ed760a543f3885cdd078b6a2d Mon Sep 17 00:00:00 2001 From: Monsta Date: Fri, 28 Nov 2014 19:09:32 +0300 Subject: removed unused var which also caused memleak --- capplets/display/xrandr-capplet.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c index c3a1643f..5baa6378 100644 --- a/capplets/display/xrandr-capplet.c +++ b/capplets/display/xrandr-capplet.c @@ -357,7 +357,6 @@ make_rate_string (int hz) static void rebuild_rate_combo (App *app) { - GHashTable *rates; MateRRMode **modes; int best; int i; @@ -371,9 +370,6 @@ rebuild_rate_combo (App *app) || !(modes = get_current_modes (app))) return; - rates = g_hash_table_new_full ( - g_str_hash, g_str_equal, (GFreeFunc) g_free, NULL); - best = -1; for (i = 0; modes[i] != NULL; ++i) { -- cgit v1.2.1