Merge pull request #3931 from hypherion2/master

Remove unused buffer in Mac shadow subsystem
This commit is contained in:
Bernhard Miklautz 2017-05-09 09:42:20 +02:00 committed by GitHub
commit 4d8d15ebf4
2 changed files with 0 additions and 6 deletions

View File

@ -457,11 +457,6 @@ static int mac_shadow_capture_init(macShadowSubsystem* subsystem)
CFDictionaryRef opts;
CGDirectDisplayID displayId;
displayId = CGMainDisplayID();
subsystem->updateBuffer = (BYTE*) malloc(subsystem->pixelWidth *
subsystem->pixelHeight * 4);
if (!subsystem->updateBuffer)
return -1;
subsystem->captureQueue = dispatch_queue_create("mac.shadow.capture", NULL);
keys[0] = (void*) kCGDisplayStreamShowCursor;

View File

@ -47,7 +47,6 @@ struct mac_shadow_subsystem
BOOL mouseDownLeft;
BOOL mouseDownRight;
BOOL mouseDownOther;
BYTE* updateBuffer;
CGDisplayStreamRef stream;
dispatch_queue_t captureQueue;
CGDisplayStreamUpdateRef lastUpdate;