Wonderbrush translator: memory leak fix
A Buffer in archive_bitmap wasn't free'd upon completion. CID 5751.
This commit is contained in:
@@ -101,6 +101,7 @@ archive_bitmap(const BBitmap* bitmap, BMessage* into, const char* fieldName)
|
||||
ret = into->AddRect("construction bounds", bitmap->Bounds());
|
||||
if (ret >= B_OK)
|
||||
ret = into->AddInt32("format", bitmap->ColorSpace());
|
||||
free(buffer);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user