Memory management review: match char-malloc/strdup-free, gchar-g_str*/g_free; set pointers to null after free; initialize fonts/backgrounds correctly when missing from config
git-svn-id: http://tint2.googlecode.com/svn/trunk@748 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi9000@gmail.com
parent
321ccc0794
commit
af003d0e19
@@ -228,7 +228,7 @@ void load_theme_from_fs_dir(IconTheme *theme, char *dir_name)
|
||||
|
||||
IconTheme *load_theme_from_fs(char *name, IconTheme *theme)
|
||||
{
|
||||
char *dir_name = NULL;
|
||||
gchar *dir_name = NULL;
|
||||
const GSList *location;
|
||||
for (location = get_icon_locations(); location; location = g_slist_next(location)) {
|
||||
gchar *path = (gchar*) location->data;
|
||||
@@ -255,7 +255,7 @@ IconTheme *load_theme(char *name)
|
||||
if (name == NULL)
|
||||
return NULL;
|
||||
|
||||
char *file_name = NULL;
|
||||
gchar *file_name = NULL;
|
||||
const GSList *location;
|
||||
for (location = get_icon_locations(); location; location = g_slist_next(location)) {
|
||||
gchar *path = (gchar*) location->data;
|
||||
|
||||
Reference in New Issue
Block a user