mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Fix conditional expressions in vatlib cleanup helpers
This commit is contained in:
@@ -58,7 +58,7 @@ namespace BlackCore
|
||||
{
|
||||
static inline void cleanup(VatProducerConsumer_tag *obj)
|
||||
{
|
||||
if (!obj) Vat_DestroyLocalInputCodec(obj);
|
||||
if (obj) Vat_DestroyLocalInputCodec(obj);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace BlackCore
|
||||
{
|
||||
static inline void cleanup(VatProducerConsumer_tag *obj)
|
||||
{
|
||||
if (!obj) Vat_DestroyLocalOutputCodec(obj);
|
||||
if (obj) Vat_DestroyLocalOutputCodec(obj);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace BlackCore
|
||||
{
|
||||
static inline void cleanup(VatProducerConsumer_tag *obj)
|
||||
{
|
||||
if (!obj) Vat_DestroyVoiceChannel(obj);
|
||||
if (obj) Vat_DestroyVoiceChannel(obj);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user