2009-01-14 Claudio Saavedra <csaavedra@igalia.com>
authorClaudio Saavedra <csaavedra@igalia.com>
Wed, 14 Jan 2009 16:54:33 +0000 (16:54 +0000)
committerClaudio Saavedra <csaavedra@igalia.com>
Wed, 14 Jan 2009 16:54:33 +0000 (16:54 +0000)
* src/hildon-picker-dialog.c: (_clean_current_selection): Only perform
post-cleaning if the selection is not NULL.

ChangeLog
src/hildon-picker-dialog.c

index 144081d..c39dce4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-01-14  Claudio Saavedra  <csaavedra@igalia.com>
 
+       * src/hildon-picker-dialog.c: (_clean_current_selection): Only perform
+       post-cleaning if the selection is not NULL.
+
+2009-01-14  Claudio Saavedra  <csaavedra@igalia.com>
+
        * src/hildon-picker-dialog.c: (_restore_current_selection): Unselect
        all items before restoring the selection.
 
index b15e237..2c49290 100644 (file)
@@ -363,9 +363,9 @@ _clean_current_selection (HildonPickerDialog *dialog)
 {
   if (dialog->priv->current_selection) {
     g_slist_foreach (dialog->priv->current_selection, (GFunc) free_path_list, NULL);
+    g_slist_free (dialog->priv->current_selection);
+    dialog->priv->current_selection = NULL;
   }
-  g_slist_free (dialog->priv->current_selection);
-  dialog->priv->current_selection = NULL;
 }
 
 static void