https://bugzilla.novell.com/show_bug.cgi?id=767666
https://bugzilla.novell.com/show_bug.cgi?id=767666#c10
--- Comment #10 from Josef Reidinger
The code:
gchar **_keywords = g_strsplit (text, delimiter, -1); for (gchar **i = _keywords; *i; i++) if (**i) keywords.push_back (*i); g_strfreev (_keywords); return keywords;
Does "keywords.push_back (*i);" actually copy the gchar *? My guess is no, so you end up with pointers in keywords, that are pointing to memory freed in g_strfreev().
I think yes, as it should initialize std::string and it should not use use given pointer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.