freemyipod r821 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r820‎ | r821 | r822 >
Date:02:26, 4 December 2011
Author:theseven
Status:new
Tags:
Comment:
emCORE: Fix library user list allocations being owned by a user instead of the library
Modified paths:
  • /emcore/trunk/library.c (modified) (history)

Diff [purge]

Index: emcore/trunk/library.c
@@ -229,6 +229,7 @@
230230 mutex_unlock(&library_mutex);
231231 return NULL;
232232 }
 233+ reownalloc(newalloc, OWNER_TYPE(OWNER_LIBRARY, lib));
233234 lib->moreusers = (void**)newalloc;
234235 lib->moreusers[lib->moreusers_size / 4] = owner;
235236 lib->moreusers_size += 64;