gmyth/src/gmyth_util.c
branchtrunk
changeset 298 414a430c1e0d
parent 291 73fa3a0f2f08
child 305 9d4af01c6a2f
     1.1 --- a/gmyth/src/gmyth_util.c	Tue Jan 23 21:37:27 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_util.c	Wed Jan 24 19:02:13 2007 +0000
     1.3 @@ -426,7 +426,7 @@
     1.4  
     1.5      if (res == TRUE) {
     1.6          GMythStringList *slist;
     1.7 -        GMythProgramInfo *program;
     1.8 +        GMythProgramInfo *program = NULL;
     1.9  
    1.10          program = gmyth_program_info_new();
    1.11          program->pathname = g_string_new (filename);
    1.12 @@ -440,9 +440,7 @@
    1.13  
    1.14          res = (gmyth_string_list_get_int (slist, 0) == 1);
    1.15      
    1.16 -        // fixme: we should do this in a program_info_free() function
    1.17 -        g_string_free (program->pathname, TRUE);
    1.18 -        g_free (program);
    1.19 +        g_object_unref (program);
    1.20  
    1.21          g_object_unref (slist);
    1.22