Skip to content

Commit

Permalink
WebHelper: plug a few memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Oct 19, 2011
1 parent ccd9153 commit c399199
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions webhelper/src/gwh-plugin.c
Expand Up @@ -381,6 +381,7 @@ save_config (void)
g_warning ("Failed to save configuration: %s", err->message);
g_error_free (err);
}
g_free (path);
g_object_unref (G_settings);
G_settings = NULL;
}
Expand Down
1 change: 1 addition & 0 deletions webhelper/src/gwh-settings.c
Expand Up @@ -332,6 +332,7 @@ gwh_settings_save_to_file (GwhSettings *self,
success = FALSE;
} else {
success = g_file_set_contents (filename, data, length, error);
g_free (data);
}
}
g_key_file_free (key_file);
Expand Down

0 comments on commit c399199

Please sign in to comment.