]> O.S.I.I.S - jp/vkvg.git/commitdiff
debug issues #161 master colinrlim/master
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Tue, 3 Jun 2025 14:30:07 +0000 (16:30 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Tue, 3 Jun 2025 14:30:07 +0000 (16:30 +0200)
src/vkvg_device.c

index af3880ae3fb3442bb5084add48b3b8aadc809625..96af2d02294b9822d4e1a56f87c36323c13a4fd0 100644 (file)
@@ -386,13 +386,13 @@ VkvgDevice vkvg_device_create(vkvg_device_create_info_t *info) {
                                           .pNext                   = pNext};
         dev->vkhDev                    = vkh_device_create(app, pi, &device_info);
 
-        vkh_app_free_phyinfos(phyCount, phys);
-
         info->inst    = vkh_app_get_inst(app);
         info->phy     = vkh_device_get_phy(dev->vkhDev);
         info->vkdev   = vkh_device_get_vkdev(dev->vkhDev);
         info->qFamIdx = pi->gQueue;
         info->qIndex  = 0;
+
+        vkh_app_free_phyinfos(phyCount, phys);
     }
 
     _device_init(dev, info);