URL:
  <https://savannah.gnu.org/bugs/?56029>

                 Summary: Memory Leak using @synchronized on Windows
                 Project: GNUstep
            Submitted by: williameverett
            Submitted on: Fri 29 Mar 2019 08:41:54 PM UTC
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

We are seeing a memory leak when using the @synchronized directive on Windows.


The following code run on a loop will steadily leak memory: 

NSMutableArray *testArray = [[NSMutableArray alloc] init]; 
@synchronized(testArray) { 
[testArray addObject:@"foooooo"]; 
} 
[testArray release]; 

If you comment out the synchronized part, there is no leak. 

This is possibly related to bug #29338: Crash using @synchronized on Windows 




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56029>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to