Merge pull request #29 from kallisti5/master
filemanager: Add assertion checks to prevent dereferencing ptrs
This commit is contained in:
commit
a43a1d9f36
|
@ -306,6 +306,7 @@ on_confirm_trash_changed (GSettings *settings,
|
|||
PlumaFileBrowserPluginData *data;
|
||||
gboolean enable = FALSE;
|
||||
|
||||
data = (PlumaFileBrowserPluginData *)(user_data);
|
||||
enable = g_settings_get_boolean (settings, key);
|
||||
|
||||
data->confirm_trash = enable;
|
||||
|
|
|
@ -2480,6 +2480,8 @@ set_virtual_root_from_node (PlumaFileBrowserStore * model,
|
|||
GSList *copy;
|
||||
GtkTreePath *empty = NULL;
|
||||
|
||||
g_assert (node != NULL);
|
||||
|
||||
prev = node;
|
||||
next = prev->parent;
|
||||
|
||||
|
|
|
@ -1640,6 +1640,8 @@ jump_to_location (PlumaFileBrowserWidget * obj, GList * item,
|
|||
|
||||
obj->priv->changing_location = TRUE;
|
||||
|
||||
g_assert (obj->priv->current_location != NULL);
|
||||
|
||||
loc = (Location *) (obj->priv->current_location->data);
|
||||
|
||||
/* Set the new root + virtual root */
|
||||
|
|
Loading…
Reference in New Issue