Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/blenlib/intern/util.c2
-rw-r--r--source/blender/editors/screen/area.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index f6fa4f1ebd2..387d1881d3c 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -1527,6 +1527,8 @@ char* BLI_getbundle(void) {
bundleURL = CFBundleCopyBundleURL(mainBundle);
pathStr = CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle);
CFStringGetCString(pathStr, path, MAXPATHLEN, kCFStringEncodingASCII);
+ CFRelease(pathStr);
+ CFRelease(bundleURL);
return path;
}
#endif
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index f539020c93d..428f17886ec 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -193,7 +193,7 @@ static void area_draw_azone(short x1, short y1, short x2, short y2)
static void region_draw_azone(ScrArea *sa, AZone *az)
{
- GLUquadricObj *qobj = gluNewQuadric();
+ GLUquadricObj *qobj = NULL;
short midx = az->x1 + (az->x2 - az->x1)/2;
short midy = az->y1 + (az->y2 - az->y1)/2;
@@ -202,6 +202,8 @@ static void region_draw_azone(ScrArea *sa, AZone *az)
/* only display action zone icons when the region is hidden */
if (!(az->ar->flag & RGN_FLAG_HIDDEN)) return;
+ qobj = gluNewQuadric();
+
glPushMatrix();
glTranslatef(midx, midy, 0.);