summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/media_device.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcamera/media_device.cpp b/src/libcamera/media_device.cpp
index 4ff9ffe1..cc307dac 100644
--- a/src/libcamera/media_device.cpp
+++ b/src/libcamera/media_device.cpp
@@ -240,10 +240,10 @@ int MediaDevice::populate()
delete[] pads;
delete[] interfaces;
- ents = new media_v2_entity[topology.num_entities];
- links = new media_v2_link[topology.num_links];
- pads = new media_v2_pad[topology.num_pads];
- interfaces = new media_v2_interface[topology.num_interfaces];
+ ents = new media_v2_entity[topology.num_entities]();
+ links = new media_v2_link[topology.num_links]();
+ pads = new media_v2_pad[topology.num_pads]();
+ interfaces = new media_v2_interface[topology.num_interfaces]();
version = topology.topology_version;
}