mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
small fix 14835 sr=jag r=pav very small chance of a memory leak in nsFrame
This commit is contained in:
parent
48fb8951f4
commit
424de9b081
@ -343,8 +343,10 @@ SelectionImageService::CreateImage(nscolor aImageColor, imgIContainer *aContaine
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
unsigned char *alpha = (unsigned char *)malloc(abpr);
|
||||
if (!alpha)
|
||||
{
|
||||
free (row_data);
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
}
|
||||
unsigned char *data = row_data;
|
||||
|
||||
PRInt16 i;
|
||||
|
@ -343,8 +343,10 @@ SelectionImageService::CreateImage(nscolor aImageColor, imgIContainer *aContaine
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
unsigned char *alpha = (unsigned char *)malloc(abpr);
|
||||
if (!alpha)
|
||||
{
|
||||
free (row_data);
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
}
|
||||
unsigned char *data = row_data;
|
||||
|
||||
PRInt16 i;
|
||||
|
Loading…
Reference in New Issue
Block a user