Changeset 18034
- Timestamp:
- Jun 9, 2008, 1:53:34 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r17991 r18034 1150 1150 return NULL; 1151 1151 } 1152 return psMemIncrRefCounter(format); 1152 return psMemIncrRefCounter(format); // a second copy, since the first copy sits on config->format 1153 1153 } 1154 1154 … … 1216 1216 } 1217 1217 1218 psFree (name); // winning format name (for metaCamera) returned by formatFromHeader 1219 1218 1220 psFree (baseName); 1219 1221 if (formatName) { … … 1225 1227 *camera = psMemIncrRefCounter(testCamera); 1226 1228 } 1227 return psMemIncrRefCounter(format);1229 return format; // we do NOT need to incr ref counter: this is the only copy 1228 1230 } 1229 1231
Note:
See TracChangeset
for help on using the changeset viewer.
