~kamstrup/gtkhotkey/trunk

« back to all changes in this revision

Viewing changes to src/gtk-hotkey-key-file-registry.c

  • Committer: "Mikkel Kamstrup Erlandsen"
  • Date: 2009-09-06 13:58:34 UTC
  • Revision ID: mikkel.kamstrup@gmail.com-20090906135834-jaszqkwjvuszdxcr
Fix possible free of unowned memory if the 'group' var was uninitialized in gtk_hotkey_key_file_registry_real_store_hotkey. This could be caused by issuing a goto prematurely

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
        GKeyFile                                        *keyfile;
249
249
        GFile                                           *file, *home;
250
250
        GError                                          *tmp_error;
251
 
        gchar                                           *file_path, *group;
 
251
        gchar                                           *file_path;
 
252
        gchar                                           *group = NULL;
252
253
        
253
254
        
254
255
        self = GTK_HOTKEY_KEY_FILE_REGISTRY (base);