зеркало из https://github.com/mozilla/gecko-dev.git
if an alpha pixmap is there destroy it and not only in the case where we have alpha bits
This commit is contained in:
Родитель
b1cae38a41
Коммит
b7a076566e
|
@ -78,9 +78,10 @@ nsImageGTK::~nsImageGTK()
|
|||
if (nsnull != mAlphaBits) {
|
||||
delete[] (PRUint8*)mAlphaBits;
|
||||
mAlphaBits = nsnull;
|
||||
if (nsnull != mAlphaPixmap) {
|
||||
gdk_pixmap_unref(mAlphaPixmap);
|
||||
}
|
||||
}
|
||||
|
||||
if (mAlphaPixmap) {
|
||||
gdk_pixmap_unref(mAlphaPixmap);
|
||||
}
|
||||
|
||||
if (mImagePixmap) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче