[yast-commit] r62658 - in /branches/SuSE-Linux-11_3-Branch/gtk: ChangeLog src/YGTable.cc
Author: rpmcruz Date: Wed Oct 20 22:09:11 2010 New Revision: 62658 URL: http://svn.opensuse.org/viewcvs/yast?rev=62658&view=rev Log: * src/YGTable.cc: bug fix 640091: crash when modifying a custom sorted table. Modified: branches/SuSE-Linux-11_3-Branch/gtk/ChangeLog branches/SuSE-Linux-11_3-Branch/gtk/src/YGTable.cc Modified: branches/SuSE-Linux-11_3-Branch/gtk/ChangeLog URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_3-Branch/gtk/ChangeLog?rev=62658&r1=62657&r2=62658&view=diff ============================================================================== --- branches/SuSE-Linux-11_3-Branch/gtk/ChangeLog (original) +++ branches/SuSE-Linux-11_3-Branch/gtk/ChangeLog Wed Oct 20 22:09:11 2010 @@ -1,3 +1,8 @@ +2010-10-20 Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> + + * src/YGTable.cc: bug fix 640091: crash when modifying + a custom sorted table. + 2010-09-14 Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> * src/pkg/YGPackageSelector.cc: fix bug 637761: run Modified: branches/SuSE-Linux-11_3-Branch/gtk/src/YGTable.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_3-Branch/gtk/src/YGTable.cc?rev=62658&r1=62657&r2=62658&view=diff ============================================================================== --- branches/SuSE-Linux-11_3-Branch/gtk/src/YGTable.cc (original) +++ branches/SuSE-Linux-11_3-Branch/gtk/src/YGTable.cc Wed Oct 20 22:09:11 2010 @@ -425,9 +425,10 @@ gchar *str_a, *str_b; gtk_tree_model_get (model, a, index, &str_a, -1); gtk_tree_model_get (model, b, index, &str_b, -1); + if (!str_a) str_a = g_strdup (""); + if (!str_b) str_b = g_strdup (""); int ret = strcmp (str_a, str_b); - g_free (str_a); - g_free (str_b); + g_free (str_a); g_free (str_b); return ret; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
rpmcruz@svn2.opensuse.org