diff options
Diffstat (limited to 'src/glibext')
-rw-r--r-- | src/glibext/portion.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glibext/portion.c b/src/glibext/portion.c index e5604b6..096a39d 100644 --- a/src/glibext/portion.c +++ b/src/glibext/portion.c @@ -202,6 +202,9 @@ GBinaryPortion *g_binary_portion_new(const vmpa2t *addr, phys_t size) result = g_object_new(G_TYPE_BINARY_PORTION, NULL); + if (!g_binary_portion_create(result, addr, size)) + g_clear_object(&result); + return result; } |