mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +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)
|
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)
|
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)
|
static inline void cleanup(VatProducerConsumer_tag *obj)
|
||||||
{
|
{
|
||||||
if (!obj) Vat_DestroyVoiceChannel(obj);
|
if (obj) Vat_DestroyVoiceChannel(obj);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user