GNOME Bugzilla – Bug 117305
gnome_score_get_notable() setting return values
Last modified: 2004-12-22 21:47:04 UTC
In gnome-score.c, the function gnome_score_get_notable() I think the section { *names = NULL; *scores = NULL; retval = 0; } should be changed to { *names = NULL; *scores = NULL; *scoretimes = NULL; retval = 0; } to set the return value 'scoretimes' to NULL, the same as for 'names' and 'scores'. Then the function calling gnome_score_get_notable() can safely do: g_strfreev (names); g_free (scores); g_free (scoretimes); without the risk of 'scoretimes' having an undefined value.
Adding patch keyword as this is as close as it gets to a patch. Upping pri as well. This should probably be commited to the branch too?
Reopening and resolving bug as a duplicate as we will be using the other bug to get the real patch using GStreamer directly. *** This bug has been marked as a duplicate of 94615 ***
Mistakenly marked this as a duplicate. Not sure how I managed to do that, but I did. Thanks to Steve Chaplin for making me aware of my mistake.
Created attachment 25986 [details] [review] patch to do as suggested by reporter
Although this might be considered a minor API breakage, I've gone ahead and committed it to HEAD anyway. Thanks!