~ubuntu-branches/ubuntu/precise/indicator-session/precise

« back to all changes in this revision

Viewing changes to src/device-menu-mgr.c

  • Committer: Package Import Robot
  • Author(s): Charles Kerr
  • Date: 2012-03-21 12:28:43 UTC
  • mfrom: (1.1.50)
  • Revision ID: package-import@ubuntu.com-20120321122843-mizl6vgyuu4a913f
Tags: 0.3.95-0ubuntu1
* New upstream release.
  * Fix small memory leaks (lp: #957342)

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
        }
167
167
 
168
168
        if (g_strcmp0 (key, KEY_LOCK_SCREEN) == 0) {
169
 
                g_debug("Keybinding changed to: %s", g_settings_get_string(settings, key));
 
169
                gchar * val = g_settings_get_string(settings, key);
 
170
                g_debug("Keybinding changed to: %s", val);
170
171
                if (lock_menuitem != NULL) {
171
 
                        dbusmenu_menuitem_property_set_shortcut_string (lock_menuitem,
172
 
                                                      g_settings_get_string(settings, key));
 
172
                        dbusmenu_menuitem_property_set_shortcut_string (lock_menuitem, val);
173
173
                }
 
174
                g_free (val);
174
175
        }
175
176
        return;
176
177
}