mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 10:27:32 +09:00
Merge remote-tracking branch 'origin/master' into custom
This commit is contained in:
commit
6431b85501
96 changed files with 16647 additions and 13653 deletions
|
|
@ -4517,8 +4517,7 @@ png_image_free(png_imagep image)
|
|||
if (image != NULL && image->opaque != NULL &&
|
||||
image->opaque->error_buf == NULL)
|
||||
{
|
||||
/* Ignore errors here: */
|
||||
(void)png_safe_execute(image, png_image_free_function, image);
|
||||
png_image_free_function(image);
|
||||
image->opaque = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,7 +82,10 @@ MediaType::Assign(const AM_MEDIA_TYPE* aMediaType)
|
|||
Clear();
|
||||
|
||||
// Shallow copy.
|
||||
memcpy(this, aMediaType, sizeof(AM_MEDIA_TYPE));
|
||||
memcpy(static_cast<AM_MEDIA_TYPE*>(this), aMediaType, sizeof(AM_MEDIA_TYPE));
|
||||
|
||||
if (pUnk)
|
||||
pUnk->AddRef();
|
||||
|
||||
// Create deep copy of incoming data...
|
||||
if (cbFormat) {
|
||||
|
|
@ -92,9 +95,6 @@ MediaType::Assign(const AM_MEDIA_TYPE* aMediaType)
|
|||
memcpy(pbFormat, aMediaType->pbFormat, cbFormat);
|
||||
}
|
||||
|
||||
if (pUnk)
|
||||
pUnk->AddRef();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue