Crash fix
This commit is contained in:
@@ -241,7 +241,7 @@ namespace lime {
|
||||
|
||||
} else {
|
||||
|
||||
data = (Bytes*)malloc (sizeof (Bytes));
|
||||
data = new Bytes ();
|
||||
data->ReadFile (resource->path);
|
||||
manager = new MySrcManager (data->b, data->length);
|
||||
cinfo.src = &manager->pub;
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace lime {
|
||||
|
||||
} else {
|
||||
|
||||
data = (Bytes*)malloc (sizeof (Bytes));
|
||||
data = new Bytes ();
|
||||
data->ReadFile (resource->path);
|
||||
ReadBuffer buffer (data->b, data->length);
|
||||
png_set_read_fn (png_ptr, &buffer, user_read_data_fn);
|
||||
|
||||
Reference in New Issue
Block a user