-1

次のエラーがあります。

Incorrect decrement of the reference count of an object that is not owned at this point by the caller

2行目にエラーが表示されます:

    TVConfigurationObject* config = [TVDeviceManger sharedTVDeviceManger].configuration;
    TVInitObj*initObj = config.initObj;

TVDeviceManger.h で:

....

 @property (nonatomic, retain) TVConfigurationObject *configuration;
 + (TVDeviceManger*) sharedTVDeviceManger;

....

TVDeviceManger.m で:

....

 + (TVDeviceManger*) sharedTVDeviceManger {
    static dispatch_once_t onceQueue;

    dispatch_once(&onceQueue, ^{
       sharedMyManager = [[TVDeviceManger alloc] init];
     });

    return sharedMyManager;
}

....

TVConfigurationObject.h:

....

 @property (nonatomic, retain) TVInitObj *initObj;

.... どうしたの?

4

1 に答える 1