Codebase list xapp / 5e4aa46
favorite-vfs-file.c: Don't free priv->uri until finalize. Without this the file is invalid - which shouldn't happen during during dispose. Michael Webster 3 years ago
1 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
13721372 priv->info = NULL;
13731373 }
13741374
1375 G_OBJECT_CLASS (favorite_vfs_file_parent_class)->dispose (object);
1376 }
1377
1378 static void favorite_vfs_file_finalize (GObject *object)
1379 {
1380 FavoriteVfsFilePrivate *priv = favorite_vfs_file_get_instance_private (FAVORITE_VFS_FILE (object));
1381
13751382 g_clear_pointer (&priv->uri, g_free);
13761383
1377 G_OBJECT_CLASS (favorite_vfs_file_parent_class)->dispose (object);
1384 G_OBJECT_CLASS (favorite_vfs_file_parent_class)->finalize (object);
13781385 }
13791386
13801387 static void
13991406 GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
14001407
14011408 gobject_class->dispose = favorite_vfs_file_dispose;
1409 gobject_class->finalize = favorite_vfs_file_finalize;
14021410 }
14031411
14041412 static void favorite_vfs_file_init (FavoriteVfsFile *self)