brasero r1482 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1482 - in trunk: . src
- Date: Thu, 6 Nov 2008 15:43:18 +0000 (UTC)
Author: philippr
Date: Thu Nov 6 15:43:18 2008
New Revision: 1482
URL: http://svn.gnome.org/viewvc/brasero?rev=1482&view=rev
Log:
Fix crashes with accessibility on in data project
* src/brasero-data-tree-model.c
(brasero_data_tree_model_iter_children):
* src/brasero-file-node.c (brasero_file_node_get_n_children):
Modified:
trunk/ChangeLog
trunk/src/brasero-data-tree-model.c
trunk/src/brasero-file-node.c
Modified: trunk/src/brasero-data-tree-model.c
==============================================================================
--- trunk/src/brasero-data-tree-model.c (original)
+++ trunk/src/brasero-data-tree-model.c Thu Nov 6 15:43:18 2008
@@ -241,7 +241,7 @@
/* This is for the top directory */
root = brasero_data_project_get_root (BRASERO_DATA_PROJECT (model));
- if (!BRASERO_FILE_NODE_CHILDREN (root))
+ if (!root || !BRASERO_FILE_NODE_CHILDREN (root))
return FALSE;
iter->stamp = priv->stamp;
Modified: trunk/src/brasero-file-node.c
==============================================================================
--- trunk/src/brasero-file-node.c (original)
+++ trunk/src/brasero-file-node.c Thu Nov 6 15:43:18 2008
@@ -472,6 +472,9 @@
BraseroFileNode *children;
guint num = 0;
+ if (!node)
+ return 0;
+
for (children = BRASERO_FILE_NODE_CHILDREN (node); children; children = children->next)
num ++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]